Default booting to kickstart
I am trying to create a CD of RHEL4 that has the kickstart file on the CD and will default boot reading the kickstart file.
I have copied the contents od DISK1 of the RedHat Distrabution disk to a scratch area "/export/home/tmp".
I have then modified the file "/isolinux/isolinux.cfg" as below
default ks
prompt 1
timeout 600
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
F7 snake.msg
label linux
kernel vmlinuz
append initrd=initrd.img ramdisk_size=9216
label text
kernel vmlinuz
append initrd=initrd.img text ramdisk_size=9216
label expert
kernel vmlinuz
append expert initrd=initrd.img ramdisk_size=9216
label ks
kernel vmlinuz
append ks=hd:cdrom/ks.cfg initrd=initrd.img ramdisk_size=9216
label lowres
kernel vmlinuz
append initrd=initrd.img lowres ramdisk_size=9216
label local
localboot 1
I have placed the ks.cfg file in the top level directory and also in the /isolinux/ directory here is my kickstart file.
install
cdrom
lang en_US.UTF-8
langsupport --default=en_US.UTF-8 en_US.UTF-8
keyboard us
xconfig --card "VESA driver (generic)" --videoram 8192 --hsync 31.5-37.9 --vsync 50-70 --resolution 1280x1024 --depth 16 --startxonboot --defaultdesktop KDE
network --device eth0 --bootproto static --ip 131.98.32.18 --netmask 255.255.0.0 --gateway 131.98.0.1 --hostname veronica
rootpw --iscrypted $1$DHmhUcQZ$UXvao.PZT9FzhY3u4JkGY/
firewall --disabled
selinux --disabled
authconfig --enableshadow --enablemd5
timezone America/New_York
bootloader --location=mbr --append="rhgb quiet" --md5pass=$1$BtAyZEdi$idmgBZoZQR8lFINrOQUgD.
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --linux
clearpart --initlabel
part /boot --fstype ext3 --size=600
#part /var --fstype ext3 --size=104400
part /var --fstype ext3 --size=53400
part /usr --fstype ext3 --size=10096
part swap --size=8096
#part / --fstype ext3 --size=8096
part / --fstype ext3 --size=36000
#part /opt --fstype ext3 --size=7098
part /opt --fstype ext3 --size=15000
part /export/home --fstype ext3 --size=6096
part /ecc --fstype ext3 --size=8096
%packages
@ office
@ kde-desktop
@ dialup
@ sound-and-video
@ editors
@ emacs
@ admin-tools
@ compat-arch-development
@ printing
@ base-x
@ gnome-desktop
@ graphics
@ development-tools
@ compat-arch-support
kernel-smp
system-config-kickstart
kernel-smp-devel
kernel-devel
e2fsprogs
%post
When I boot the CD I enter at the boot prompt "linux ks"
This returns with screens asking me questions for Language,Ip-address ... and does not seem to see the kickstart file. Any insight as to what I am missing?
I am also building an iso from my scratch dis with the following commands.
$ mkisofs -o boot-ks.iso -r -b isolinux/isolinux.bin
-c isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
-boot-info-table -R -J -v -T /export/home/tmp
|