Re: FW: Boot.img

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

 



--- "Kornfeld Rick (sys1rak)" <sys1rak@xxxxxxx> wrote:
> 
> Hello

<snip>

> What I would like help on is how do I take our
> KS.CFG file and incorporate
> it into the BOOT.IMG on our CD. That way when a user
> creates a boot disk
> from our custom CD's the KS.CFG file is already on
> the diskette and there is
> no need to manually copy it.

Rick,

simply copy the ks.cfg file into the initrd.img file
(you will find the initrd.img file within the boot.img
file). you will need to change syslinux.cfg --> add 
"append ks=file:/ks.cfg initrd=initrd.img" below
"kernel vmlinuz"

Here are the steps to add your ks.cfg file into
initrd.img --

to mount the initrd.img, first gunzip it 
--> gunzip -9 -S .img initrd.img
(this will unzip the file into initrd)
then mount it 
--> mount -o loop initrd /path/to/mount/directory
copy the ks.cfg into the root of this mount directory
and umount the mount directory.
--> umount /path/to/mount/directory
create the img file again 
--> gzip -9 -S .img initrd
place the initrd.img file back into boot.img and thats
it ! work done !!

I know this works on RH7.3, i'm pretty sure it will
work on AS2.1 too.

HTH,
satsco.

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com




[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux