LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-16-2009, 10:09 AM   #1
mfb
LQ Newbie
 
Registered: Aug 2007
Posts: 20

Rep: Reputation: 0
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
 
Old 03-17-2009, 05:42 AM   #2
DaveG
Member
 
Registered: Nov 2001
Location: London, UK
Distribution: Fedora
Posts: 161

Rep: Reputation: 43
Is it the kickstart file location in isolinux.cfg correct?

label ks
kernel vmlinuz
append ks=hd:cdrom/ks.cfg initrd=initrd.img ramdisk_size=9216
..........^^
Should this be:
label ks
kernel vmlinuz
append ks=cdrom:/ks.cfg initrd=initrd.img ramdisk_size=9216

Ref: http://docs.fedoraproject.org/instal...tallation.html

--DaveG
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Static IP addresses supplied through default kickstart config file? stuart_cherrington Red Hat 5 10-29-2009 12:39 PM
Kickstart unable to find pxelinux.cfg/default sp149 Linux - Newbie 2 11-21-2007 03:34 PM
Details about default web Browser & default Email client sudhasmyle Linux - Software 4 06-15-2006 11:45 AM
Dual-booting MEPIS and WinXP, I want Grub to default to WinXP jjf Linux - Newbie 8 01-19-2006 03:27 AM
Automatically adding default gateway when booting enjoyzj Linux - Networking 2 04-13-2004 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration