RE: Is it possible that kickstart install with cdrom booting?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



yes, you need to place the ks.cfg inside of your boot.img on the cdrom,
 
Step 1
 
Copy the whole of the redhat distribution onto you local HD, make sure you get the hidden . files in the cd roots etc, as well (ls -la)
 
Step 2
 
mount the cdrom and make a backup of the boot image on the cdrom.
 
$ mount -o loop the boot image,
$ ls /<mount point boot image> and you will see the initrd.img,
copy the initrd.img out of the boot image to initrd.bak
copy initrd.bak to initrd.img.gz,
$ gunzip initrd.img.gz
$ mount -o loop the resulting initrd.img
$ cd /<mount point of intrd.img>
 
you will see a ks/ directory, inside lives the ks.cfg file,
$ cp /<mount point of intrd>/ks/ks.cfg locally i.e. ks.cfg_testing
 
make your changes to ks.cfg_testing
$ cp ks.cfg_testing  /<mount point of intrd.img >/ks/ks.cfg   (overwrite ks.cfg <yes>)
$ umount /<mount point of intrd>/
$ gzip initrd
$ cp initrd.img.gz /<mount point boot image.img>/initrd.img (overwrite initrd.img <yes>)
 
Step 3
 
Now syslinux.cfg
 
in the /<mount point boot image> you will see syslinux.cfg and a bunch of other files
 
change syslinux.cfg to read:
 
<-------------------- Start of file ------------------------>
default ks
prompt 1
timeout 10000
display boot.msg
F1 boot.msg
F2 install.msg
F3 hardware.msg
F4 raid.msg
label ks
  kernel vmlinuz
  append ks=file:/ks/ks.cfg initrd=initrd.img
<-------------------- End of file ------------------------>
 
$ umount /<mount point boot image>
 
you now have your ks.cfg inside the initrd in the boot image of the cdrom.
and you have syslinux.cfg inside the boot.img pointing to it.
 
Step 4
 
On a linux box create the new iso. Go into your iso creation directory and
 
mkisofs -b your_boot.img -c boot.cat -r -o $ISO_NAME .
 
this will make a recordable bootable redhat .iso
 
N.B. if you are doing the kickstart only from CD-rom you will have to munge the 2 CD set /RedHat/RPMS/ together this is covered in many docs on the net. First thing you will find is all the rpms together are to big to fit on 1 CD-rom.
 
good luck.
 
yours a.r.b.
 

-----Original Message-----
From: kickstart-list-admin@xxxxxxxxxx [mailto:kickstart-list-admin@xxxxxxxxxx]On Behalf Of Lee, Myoung Ho
Sent: 04 July 2002 11:01
To: kickstart-list@xxxxxxxxxx
Subject: Is it possible that kickstart install with cdrom booting?

 
If then, how can I do it?
 
I uses anaconda-7.2-7.
 
I copied ks.cfg to CDROM root directory and booted as followed:
boot: linux ks=cdrom
or
boot: linux ks=cdrom:/fs.cfg
 
but it's fail.
 
 

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux