RE: Re[2]: Kickstart on serial ASCII terminal

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

 



> -----Original Message-----
> From: Seth Alford [mailto:sethal@xxxxxxxxx]
> Sent: Wednesday, June 13, 2001 11:32 AM
> To: kickstart-list@xxxxxxxxxx
> Cc: sethal@xxxxxxxxx
> Subject: Re: Re[2]: Kickstart on serial ASCII terminal
> 
> 
> Yet another option is to insert the kickstart
> file into the initial ramdisk image, and tell syslinux
> to read it.  The advantage is that it works
> automatically, and you don't have to type something
> at the SYSLINUX prompt.  If you are doing a NFS
> install, you'll only need to insert one floppy into
> the machine your booting, instead of one floppy with
> the boot image and one floppy with the kickstart file.
> This is a plus if you have a lot of machines to load.
> 
> That is, for a NFS boot, do something like
> (Warning: this should work, but this code is untested,
> YMMV, the usual caveats apply:)
> 
> ----begin pseudo-code----
> 
> # Set up a CD-ROM hierarchy on an NFS server, by
> # copying the CD-ROM files from CD1 and CD2 to a disk.
> # Then
> 
> cd < top level of the hierarchy >
> cd images
> cp bootnet.img /tmp
> cd /tmp
> mkdir bootnet initrdnet
> # Assuming your kernel supports the loopback driver:
> mount bootnet.img bootnet -o loop
> gunzip < bootnet/initrd.img > /tmp/initrd.img
> mount initrd.img initrdnet -o loop
> # If you want to do an NFS install, you'll need to
> # configure your kickstart file to reference the
> # NFS server.  Then...
> cp <your kickstart file> initrdnet/
> umount initrdnet
> gzip < initrd.img > bootnet/initrd.img
> cd bootnet
> # edit syslinux.cfg, and add to the append line:
> # "ks=file:/ks.cfg console=ttyS0,9600n8"
> #
> # Suggestion: put this in a new stanza in the
> # syslinux.cfg file.
> cd /tmp
> umount bootnet
> cd <back to your cd-rom image hierarchy>
> cd images
> cp /tmp/bootnet.img bootnet.img
> 
> ----end of pseudo-code----
> 
> You'll also have to copy the bootnet.img to a floppy.
> 
> If someone knows a simpler way to do this, please
> post it to the list.
> 
> --Seth Alford
> sethal@xxxxxxxxx
> 

Instead of putting it in the initrd.img, just put the ks.cfg file on the
bootnet.img floppy:

dd if=/mnt/cdrom/images/bootnet.img of=/dev/fd0
mount /mnt/floppy
cp <your kickstart file> /mnt/floppy

edit /mnt/floppy/syslinux.cfg
default ks
...
label ks
	..
	append ks=floppy console=ttyS0,9600n8 ...

You shouldn't need two floppies.

Forrest





[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