[CentOS] kickstart won't kick-off via network

Tue Feb 3 15:55:43 UTC 2009
Isaac Hailperin <ihailper at transtec.de>

> >Now since I get asked all these questions at boot time, I suspect that
> >the kickstart file is not there to answer these questions.
> 
> It does use it, it just doesn't find the network-block in ks.cfg. Does your
> ks.cfg contain some lines for the networking? 
Yes:

# Kickstart file automatically generated by anaconda.

install url --url http://9.0.0.1/all/repository/CentOS5.2
[...]
network --device eth0 --bootproto dhcp --hostname node1.cluster
network --device eth1 --bootproto dhcp --hostname node1.cluster
[...]

> You didn't modify the ks.cfg you
> mention above, did you?
Yes, I modified the part after install. It used to be "cdrom".

> You can open the ks.cfg you already have and then tweak with the wizard.
I opened the ks.cfg with system-config-kickstart. I configured it to
install from network. It produced the following:

#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth  --useshadow  --enablemd5
# System bootloader configuration
bootloader --append="rhgb quiet" --location=mbr --driveorder=sda
# Partition clearing information
clearpart --linux  --drives=sda
# Use graphical install
graphical
# Firewall configuration
firewall --disabled
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# Installation logging level
logging --level=info
# Use network installation
url --url=http://9.0.0.1/all/repository/CentOS5.2
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
network --bootproto=dhcp --device=eth1 --onboot=on
#Root password
rootpw --iscrypted $xxx

# SELinux configuration
selinux --disabled
# System timezone
timezone --isUtc America/New_York
# Install OS instead of upgrade
install
# X Window System configuration information
xconfig  --defaultdesktop=GNOME --depth=8 --resolution=640x480
--startxonboot
# Disk partitioning information
part / --bytes-per-inode=4096 --fstype="ext3" --size=25000
part swap --bytes-per-inode=4096 --size=8000
part /home --bytes-per-inode=4096 --fstype="ext3" --grow --size=100

%packages
@base-x


Now in conjunction with the kernel parameter ksdevice=eth1 (thank you
Kai!) this works like a charm.
I seems that I misunderstood the use of "install" and "url".

- Comming form SLES and autoyast I thought I should avoid the gui, but
kickstart seems to do better here -

Thank you!

Isaac

_____________________________________________________________________
Vorstand: Ertu Uysal, Axel Queck
Vorsitzender des Aufsichtsrats: Bernhard Bruscha
Sitz der Gesellschaft: Tuebingen
Amtsgericht Stuttgart HRB 381299

Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese 
E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den 
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail 
in error) please notify the sender immediately and destroy this 
e-mail. Any unauthorized copying, disclosure or distribution of the 
material in this e-mail is strictly forbidden.