preseed not working as expected
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I need help with Debian-installer.
I'm booting my machine from the network using PXE.
After booting I'm using a preseed(I have added my preseed to end of this
email) for auto configuring the installation. In the pressed I use
early_command to create my raid(RAID 1 - containing /dev/hda4 &
/dev/hdc4) using the script deb_dev_bg. If issued on the second console
of the machine the script is doing its job perfectly. But when I relay
on the debian-installer to run it, it just starts a loop after the DHCP
network configuration. It starts the Hardware detection but when it
reach 1% it restarts the hardware detection and this is continuening...
So my question is: Is it possible to get over this problem?
If I'm doing something very wrong can you please tell me how I should do
it ?
Many thanks
~ M.Marinov
- ---------------------------------------------------------------------
# BOOT=db_sarge Debian 3.1 (Sarge)
#d-i preseed/early_command string wget http://10.0.0.1/dev/deb_dev_bg ;
chmod 755 `pwd`/deb_dev_bg ; `pwd`/deb_dev_bg
d-i preseed/early_command string wget http://10.0.0.1/dev/deb_dev_bg ;
. /deb_dev_bg
d-i preseed/late_command string wget
http://10.0.0.1/installer/localboot.php -O -
d-i netcfg/use_dhcp boolean false
d-i netcfg/get_hostname string ---SERVER_NAME_SHORT---
d-i netcfg/confirm_static boolean true
d-i netcfg/wireless_essid string
d-i netcfg/choose_interface select auto
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_nameservers string 10.0.0.1
d-i netcfg/get_ipaddress string ---IP_ADDRESS---
d-i netcfg/get_netmask string ---NETMASK---
d-i netcfg/get_gateway string ---GATEWAY---
d-i mirror/protocol string ftp
d-i mirror/country string enter information manually
d-i mirror/ftp/hostname string 10.0.0.1
d-i mirror/ftp/directory string /debian
d-i mirror/suite string testing
# HM--comment--
d-i partman/skip boolean true
#d-i partman-auto/disk string /dev/discs/disc0/disc
#d-i partman-auto/expert_recipe string boot-var-root :: 118
50 118 ext3 $primary{ } $bootable{ } method{ format } format{ }
use_filesystem{ } filesystem{ ext3 } mountpoint{ /boot } . 6000 50 6000
ext3 method{ format } format{ } use_filesystem{ } filesystem{ ext3 }
mountpoint{ /var } . 500 10000 1000000000 ext3 method{ forimat } format{
} use_filesystem{ } filesystem{ ext3 } mountpoint{ / } . 64 512 300%
linux-swap method{ swap } format{ } .
#d-i partman-auto/expert_recipe string swap :: 64 512 300%
linux-swap method{ swap } format{ } .
#d-i partman/choose_partition select Finish partitioning and
write changes to disk
#d-i partman/confirm boolean true
#d-i partman-auto/disk string /dev/discs/disc0/disc
#d-i partman-auto/expert_recipe string boot-root :: 118 50
118 ext3 $primary{ } $bootable{ } method{ format } format{ }
use_filesystem{ } filesystem{ ext3 } mountpoint{ /boot } . 500 10000
1000000000 ext3 method{ format } format{ } use_filesystem{ } filesystem{
ext3 } mountpoint{ / } . 64 512 300% linux-swap method{ swap } format{ } .
#d-i partman/choose_partition select Finish partitioning and
write changes to disk
#d-i partman/confirm boolean true
d-i grub-installer/skip boolean false
d-i grub-installer/bootdev string
d-i grub-installer/apt-install-failed boolean yes
d-i grub-installer/with_other_os boolean true
d-i grub-installer/only_debian boolean true
d-i prebaseconfig/reboot_in_progress note
d-i debian-installer/consoledisplay string kbd=lat0-sun16(iso15)
d-i debian-installer/kernel/linux/link_in_boot boolean false
d-i debian-installer/fallbacklocale string en_US@euro
d-i debian-installer/serial-console boolean false
d-i debian-installer/missing-provide select ${DEFAULT}
d-i debian-installer/dummy string
d-i debian-installer/kernel/image string kernel-image-2.6-k7
d-i debian-installer/kernel/linux/initrd-2.6 boolean true
d-i debian-installer/main-menu select Finish the installation
d-i debian-installer/framebuffer boolean true
d-i debian-installer/kernel/commandline string ro
d-i debian-installer/kernel/image-2.6 string
d-i debian-installer/exit/always_halt boolean false
d-i debian-installer/kernel/subarchitecture string generic
d-i debian-installer/language string en_FR:en_US:en:en_GB:en
d-i debian-installer/country string FR
d-i debian-installer/kernel/linux/initrd boolean true
d-i debian-installer/probe/usb boolean false
d-i debian-installer/probe/floppy boolean false
d-i debian-installer/exit/halt boolean false
d-i debian-installer/keymap select us
d-i debian-installer/locale string en_US
d-i countrychooser/shortlist-fr select
d-i countrychooser/country-name select France
d-i countrychooser/shortlist select other
d-i console-keymaps-at/keymap select us
d-i hw-detect/pcmcia_resources string
d-i hw-detect/prompt_module_params boolean false
d-i hw-detect/start_pcmcia boolean false
d-i hw-detect/module_params string
d-i hw-detect/select_modules multiselect usb-storage (USB
storage), via82cxxx (IDE chipset support), trm290 (IDE chipset support),
triflex (IDE chipset support), slc90e66 (IDE chipset support), sis5513
(IDE chipset support), siimage (IDE chipset support), serverworks (IDE
chipset support), sc1200 (IDE chipset support), rz1000 (IDE chipset
support), piix (IDE chipset support), pdc202xx_old (IDE chipset
support), pdc202xx_new (IDE chipset support), opti621 (IDE chipset
support), ns87415 (IDE chipset support), hpt34x (IDE chipset support),
generic (IDE chipset support), cy82c693 (IDE chipset support), cs5530
(IDE chipset support), cs5520 (IDE chipset support), cmd64x (IDE chipset
support), atiixp (IDE chipset support), amd74xx (IDE chipset support),
alim15x3 (IDE chipset support), aec62xx (IDE chipset support),
ide-generic (Linux IDE support), ide-disk (Linux ATA DISK), ide-cd
(Linux ATAPI CD-ROM), isofs (Linux ISO 9660 filesystem)
d-i debconf/showold boolean false
d-i debconf/language string en_US:en_GB:en
d-i debconf/priority select critical
d-i debconf/frontend string Noninteractive
d-i retriever/floppy/error boolean false
d-i retriever/net/error select Retry
d-i retriever/floppy/device select
d-i ethdetect/module_select select no ethernet card
d-i ethdetect/load_floppy boolean false
d-i ethdetect/retry_params string
d-i anna/no_kernel_modules boolean false
d-i anna/choose_modules_lowmem multiselect
d-i anna/choose_modules multiselect
# base config
adduser adduser/homedir-permission boolean true
debconf debconf/frontend select Noninteractive
# HM-commnet-
#base-config base-config/late_command string echo "auto lo" >
/etc/network/interfaces; echo "iface lo inet loopback" >>
/etc/network/interfaces ;echo "auto eth0 " >> /etc/network/interfaces
;echo "iface eth0 inet static " >> /etc/network/interfaces ;echo
"address ---IP_ADDRESS--- " >> /etc/network/interfaces ;echo "netmask
- ---NETMASK--- " >> /etc/network/interfaces ;echo "gateway ---GATEWAY---"
|> /etc/network/interfaces ; echo "---SERVER_NAME_SHORT---" >
/etc/hostname ; echo "nameserver 62.193.206.134" >>/etc/resolv.conf ;rm
- -rf /var/spool/lpd ;apt-get -y install ncftp ntpdate mysql-server hdparm
apache2 php4 php4-mysql; apt-get --purge -y remove bind uw-imap qpopper
; apt-get --purge -y remove bind9 lwresd portmap postgresql
postgresql-client postgresql-doc postgresql-contrib;apt-get -y remove
lpr;echo "Europe/Paris" > /etc/timezone ; rm -f /etc/localtime && ln -sf
/usr/share/zoneinfo/Europe/Paris /etc/localtime ; rm -rf
/var/log/debian-installer && wget http://10.0.0.1/installer/ready.php -O
- - ;wget http://10.0.0.1/installer/setstatus.php?status_id=6 -O -
;dpkg-reconfigure debconf ;mv /etc/apt/sources.list /etc/apt/source
;grep -v amenworld /etc/apt/source > /etc/apt/sources.list; rm -rf
/etc/apt/source;update-rc.d -f inetd remove >&/dev/null;reboot
base-config base-config/late_command string wget
http://10.0.0.1/db_sarge ; chmod 755 `pwd`/db_sarge ; `pwd`/db_sarge
- ---IP_ADDRESS--- ---NETMASK--- ---GATEWAY--- ---SERVER_NAME_SHORT--- ;
base-config base-config/intro note
base-config base-config/login note
passwd passwd/root-password password ---PLAIN_ROOT_PW---
passwd passwd/root-password-again password ---PLAIN_ROOT_PW---
passwd passwd/make-user boolean false
base-config apt-setup/uri_type select ftp
base-config apt-setup/country select enter information manually
base-config apt-setup/hostname string ftp.bg.debian.org
base-config apt-setup/directory string /debian
base-config apt-setup/another boolean false
base-config apt-setup/non-free boolean false
base-config apt-setup/contrib boolean true
base-config apt-setup/security-updates boolean true
tasksel tasksel/first multiselect Web server, DNS server, Mail
server, SQL database
tasksel tasksel/tasks multiselect
base-config tzconfig/gmt boolean true
base-config tzconfig/choose_country_zone/Europe select CET
base-config tzconfig/choose_country_zone_e boolean true
ucf ucf/changeprompt select keep your currently-installed
version
ucf ucf/changeprompt_threeway select keep your
currently-installed version
console-common console-data/bootmap-md5sum string none
console-common console-data/keymap/family select qwerty
console-common console-data/keymap/full select
console-common console-data/keymap/policy select Don't touch keymap
console-common console-data/keymap/powerpcadb select
console-common console-data/keymap/template/keymap select
console-common console-data/keymap/template/layout select
console-common console-data/keymap/template/variant select
console-data console-data/bootmap-md5sum string none
console-data console-data/keymap/qwerty/us_american/apple_usb/keymap
select
console-data console-data/keymap/qwerty/us_american/standard/keymap
select
console-data console-data/keymap/qwerty/us_american/variant select
postgresql postgresql/initdb/location string
/var/lib/postgres/data
postgresql postgresql/upgrade/preserve_location string $PGDATA/..
postgresql postgresql/settings/day_month_order select US
postgresql postgresql/upgrade/policy boolean true
postgresql postgresql/settings/locale select C
postgresql postgresql/enable_lang boolean true
postgresql postgresql/purge_data_too boolean false
postgresql postgresql/very_old_version_warning boolean true
postgresql postgresql/upgrade/dump_location string $PGDATA/..
postgresql-client postgresql-client/missing-postgresql.env
boolean true
postgresql postgresql/convert-pg_hba.conf boolean true
ssl-cert make-ssl-cert/countryname string US
ssl-cert make-ssl-cert/email string webmaster@localhost
ssl-cert make-ssl-cert/hostname string localhost
ssl-cert make-ssl-cert/localityname string Some-Locality
ssl-cert make-ssl-cert/organisationname string One Organization
ssl-cert make-ssl-cert/ouname string One Organization Unit
ssl-cert make-ssl-cert/statename string Some-State
exim4-config exim4/dc_eximconfig_configtype select local delivery
only; not on a network
exim4-config exim4/dc_local_interfaces string 127.0.0.1
exim4-config exim4/dc_minimaldns boolean false
exim4-config exim4/dc_noalias_regenerate boolean false
exim4-config exim4/dc_other_hostnames string
exim4-config exim4/dc_postmaster string
exim4-config exim4/dc_readhost string
exim4-config exim4/dc_relay_domains string
exim4-config exim4/dc_relay_nets string
exim4-config exim4/dc_smarthost string
exim4-config exim4/exim3_upgrade boolean true
exim4-config exim4/hide_mailname boolean
exim4-config exim4/mailname string localhost.localdomain
exim4-config exim4/no_config boolean true
exim4-config exim4/use_split_config boolean false
tcpd tcpd/paranoid-mode boolean false
hotplug hotplug/ignore_pci_class_display boolean true
hotplug hotplug/net_agent_policy select hotplug
hotplug hotplug/static_module_list multiselect
hotplug hotplug/x11_usbmice_hack boolean false
man-db man-db/build-database boolean true
man-db man-db/rebuild-database boolean true
man-db man-db/install-setuid boolean false
dictionaries-common dictionaries-common/default-ispell select
american (American English)
dictionaries-common dictionaries-common/default-wordlist select
american (American English)
dictionaries-common dictionaries-common/old_wordlist_link boolean true
dictionaries-common dictionaries-common/move_old_usr_dict boolean true
dictionaries-common dictionaries-common/remove_old_usr_dict_link
boolean false
passwd passwd/root-password password ---PLAIN_ROOT_PW---
passwd passwd/root-password-again password ---PLAIN_ROOT_PW---
passwd passwd/make-user boolean false
passwd passwd/md5 boolean false
passwd passwd/shadow boolean true
libc-client2002edebian libc-client/no_maildir_warning boolean true
libc-client2002edebian libc-client/plaintext boolean false
fontconfig fontconfig/enable_bitmaps boolean false
fontconfig fontconfig/rendering_type select Autohinter
mailagent shared/news/organization string --none--
discover1 discover/manage_cdrom_devices boolean false
discover1 discover/cdrom_base_mountpoint string /media/
locales locales/default_environment_locale select None
locales locales/locales_to_be_generated multiselect
setserial setserial/autosave boolean true
setserial setserial/autosave-types select autosave once
ifupdown ifupdown/convert-interfaces boolean true
netkit-inetd netkit-inetd/inetd-dos-services boolean true
libx11-6 libx11-6/migrate_xkb_dir boolean true
ssh ssh/new_config boolean true
ssh ssh/use_old_init_script boolean true
ssh ssh/protocol2_only boolean true
ssh ssh/run_sshd boolean true
ssh ssh/SUID_client boolean true
ssh ssh/disable_cr_auth boolean false
flex flex/upgrade/pre_2.5.5 boolean false
libssl0.9.7 libssl0.9.7/restart-services string
analog analog/anlgform boolean false
uw-imapd uw-imapd/protocol multiselect imap2, imaps
dash dash/sh boolean false
setserial setserial/autosave-types select autosave once
spamassassin spamassassin/upgrade/2.42m select No
spamassassin spamassassin/upgrade/2.42u select No
libapache2-mod-python2.3 libapache2-mod-python/enable_module
boolean true
libxt6 libxt6/migrate_app_defaults_dir boolean true
- ---------------------------------------------------------------------
#!/bin/bash
## Pre-install file
# Get the needed software
wget http://10.0.0.1/dev/deb.tar
#wget
http://ftp.fi.debian.org/debian/pool/main/l/linux-kernel-di-i386-2.6/ide-modules-2.6.8-2-386-di_1.02_i386.udeb
#wget
http://ftp.fi.debian.org/debian/pool/main/k/kernel-image-2.6.8-i386/kernel-image-2.6.8-2-386_2.6.8-13_i386.deb
wget
ftp://10.0.0.1/debian/pool/main/l/linux-kernel-di-i386-2.6/ide-modules-2.6.8-2-386-di_1.02_i386.udeb
wget
ftp://10.0.0.1/debian/pool/main/k/kernel-image-2.6.8-i386/kernel-image-2.6.8-2-386_2.6.8-13_i386.deb
wget
ftp://10.0.0.1/debian/pool/main/k/kernel-image-2.6.8-i386/kernel-headers-2.6.8-2-386_2.6.8-13_i386.deb
# Installing needed modules
udpkg -i ide-modules-2.6.8-2-386-di_1.02_i386.udeb
udpkg -i kernel-image-2.6.8-2-386_2.6.8-13_i386.deb
udpkg -i kernel-headers-2.6.8-2-386_2.6.8-13_i386.deb
depmod -a
hw-detect
# Extracting programs & libs
tar xf `pwd`/deb.tar
mv `pwd`/libs/* /lib
mv sfdisk /bin
mv seq /bin
mv mdadm /bin
mv mk* /bin
rm `pwd`/deb.tar
rm -r `pwd`/libs
# Creating missing devices
for m in 'hda' 'hdb' 'hdc' 'hdd'
do
if [ $m = 'hda' ]; then ma=3; mi=0; fi
if [ $m = 'hdb' ]; then ma=3; mi=64; fi
if [ $m = 'hdc' ]; then ma=22; mi=0; fi
if [ $m = 'hdd' ]; then ma=22; mi=64; fi
mknod /dev/$m b $ma $mi
for i in `seq 1 14`
do
dev=$m$i
mi=`expr $mi + 1`
mknod /dev/$dev b $ma $mi
done
done
for i in `seq 0 3` ; do mknod /dev/md$i b 9 $i ; done
# Get swap size
mem=`free|grep Mem|cut -c 13-20`
memsize=`expr $mem \* 3`
swapsize=`expr $memsize / 1024`
# Create partition tables
echo -e ",104,L\n,5712,L\n,$swapsize,S\n,,fd" > disks
for disk in 'hda' 'hdc' ; do sfdisk -uM /dev/$disk < `pwd`/disks ; done
# Create & activate swap
for dev in 'hda3' 'hdc3' ; do
~ mkswap -c -v1 /dev/$dev
~ swapon /dev/$dev
done
modprobe raid0
modprobe raid1
wget http://10.0.0.1/dev/raidtab -O /etc/raidtab
echo y | mdadm --create --verbose --force /dev/md0 --level=raid1
- --raid-devices=2 /dev/hda4 /dev/hdc4
# Create ext3 fs
for i in 'hda1' 'hda2' 'hdc1' 'hda2' 'md0'
do
~ mkfs.ext3 /dev/$i
done
# Mount the instalation devices
mkdir /target
mount /dev/md0 /target
mkdir /target/boot
mkdir /target/var
mount /dev/hda1 /target/boot
mount /dev/hda2 /target/var
## As they must be
# 100M /boot primary /target/boot 104
# 5.5G /var logical /target/var 5712
# 3xRAM swap logical default
# rest / logical /target ,,L
- ----------------------------------------------------------
#!/bin/bash
## Post install file
echo "auto lo" > /etc/network/interfaces
echo "iface lo inet loopback" >> /etc/network/interfaces
echo "auto eth0 " >> /etc/network/interfaces
echo "iface eth0 inet static " >> /etc/network/interfaces
echo "address $1" >> /etc/network/interfaces
echo "netmask $2" >> /etc/network/interfaces
echo "gateway $3" >> /etc/network/interfaces
echo "$4" > /etc/hostname
echo -e "search amenwolrd.com host24x7.com\nnameserver
62.193.206.133\nnameserver 62.193.206.134" >/etc/resolv.conf
rm -rf /var/spool/lpd
apt-get -y install ncftp ntpdate mysql-server hdparm apache2 php4 php4-mysql
apt-get --purge -y remove bind uw-imap qpopper
apt-get --purge -y remove bind9 lwresd portmap postgresql
postgresql-client postgresql-doc postgresql-contrib
apt-get -y remove lpr
echo "" > /etc/inetd.conf
echo "Europe/Paris" > /etc/timezone
rm -f /etc/localtime && ln -sf /usr/share/zoneinfo/Europe/Paris
/etc/localtime
rm -rf /var/log/debian-installer && wget
http://10.0.0.1/installer/ready.php -O -
wget http://10.0.0.1/installer/setstatus.php?status_id=6 -O -
dpkg-reconfigure -p critical debconf
mv /etc/apt/sources.list /etc/apt/source
grep -v amenworld /etc/apt/source > /etc/apt/sources.list
rm -rf /etc/apt/source
update-rc.d -f inetd remove >&/dev/null
reboot
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCbyr/3Yxvcd1IerIRAm8rAKDDobNmUR2qXuy2UWikX8IUwRTvxQCgjU8y
dfMhd609VuG6zsCoMUVhZpw=
=dQPV
-----END PGP SIGNATURE-----
Reply to: