S12tftp

Synopsys


#
# Need to fixup the tftpboot
#

Script


echo "%Post: tftp daemon and pxeboot"
# put the PXE boot loader in the right place
ln -s linux-install/pxelinux.0 /tftpboot/pxelinux.0
chkconfig --level 345 tftp on
# Put in a MSG file for startup
mkdir /tftpboot/msgs
cat >/tftpboot/msgs/boot.msg <<EOF


                    PXE Boot Builder

      localboot = default and boot against local disk

        dosinst = unattended Microsoft OS install

         winlin = unattended Microsoft OS install via Linux

        memtest = memtest86+

         fedora = Fedora Core

       whitebox = Whitebox Enterprise Linux V3.0




EOF
#
# Put in the boot configuration file
mkdir /tftpboot/pxelinux.cfg
cat >/tftpboot/pxelinux.cfg/default <<EOF
default localboot
prompt 1
timeout 300
display msgs/boot.msg

LABEL localboot
	LOCALBOOT 0
	prompt 1
	timeout 10

LABEL dosinst
	KERNEL pxeboot/win/unattended/memdisk
	APPEND initrd=pxeboot/win/unattended/undis3c.imz keeppxe
	PROMPT 1
	TIMEOUT 300

LABEL winlin
	KERNEL pxeboot/winlin/bzImage
	APPEND initrd=pxeboot/winlin/initrd
	PROMPT 1
	TIMEOUT 300

LABEL fedora
	KERNEL pxeboot/fedora/vmlinuz
	APPEND initrd=pxeboot/fedora/initrd.img devfs=nomount ks=nfs:$HOSTIP:/export/OS/fedora/current/kickstart/ks.cfg method=nfs:$HOSTIP:/export/OS/fedora/current
	PROMPT 1
	TIMEOUT 300

LABEL whitebox
	KERNEL pxeboot/whitebox/vmlinuz
	APPEND initrd=pxeboot/whitebox/initrd.img devfs=nomount ks=nfs:$HOSTIP:/export/OS/whitebox/current/kickstart/ks.cfg method=nfs:$HOSTIP:/export/OS/whitebox/current
	PROMPT 1
	TIMEOUT 300

LABEL memtest
	KERNEL test/memtest
	APPEND -
	PROMPT 1
	TIMEOUT 300

EOF

Examples and Testing


#
# The files used to boot the various OS's are in fact automounted
# into place via an LDAP map. This should allow the current pointer
# to be moved and everything be updated..
#



Marked up in XHTML - ©2005 Thoughtful Solutions Ltd.