slitaz-tools rev 222

bootfloppybox: add gPXE support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 28 16:11:18 2008 +0000 (2008-06-28)
parents a54349b53418
children 5ba386cd09f9
files tinyutils/bootfloppybox
line diff
     1.1 --- a/tinyutils/bootfloppybox	Wed Jun 25 15:16:41 2008 +0000
     1.2 +++ b/tinyutils/bootfloppybox	Sat Jun 28 16:11:18 2008 +0000
     1.3 @@ -77,6 +77,8 @@
     1.4  				/media/floppy/boot/memdisk
     1.5  		[ -f /usr/share/boot/etherboot ]\
     1.6  			&& cp /usr/share/boot/etherboot /media/floppy/boot
     1.7 +		[ -f /boot/gpxe ]\
     1.8 +			&& cp /boot/gpxe /media/floppy/boot
     1.9  		[ -f /usr/share/boot/memtest.lzma ]\
    1.10  			&& unlzma -c /usr/share/boot/memtest.lzma > \
    1.11  				/media/floppy/boot/memtest
    1.12 @@ -157,10 +159,15 @@
    1.13  
    1.14  EOT
    1.15  [ -f /usr/share/boot/etherboot ] && cat >> /tmp/floppybox.grub.menu <<EOT
    1.16 -title Etherboot
    1.17 +title Etherboot (LAN boot, PXE or NBI)
    1.18  	kernel /boot/etherboot
    1.19  
    1.20  EOT
    1.21 +[ -f /boot/gpxe ] && cat >> /tmp/floppybox.grub.menu <<EOT
    1.22 +title gPXE (LAN boot, PXE/iSCSI/AoE, else boot on http://boot.slitaz.org/)
    1.23 +	kernel /boot/gpxe
    1.24 +
    1.25 +EOT
    1.26  [ -f /usr/share/boot/memtest.lzma ] && cat >> /tmp/floppybox.grub.menu <<EOT
    1.27  title Memtest86+
    1.28  	kernel /boot/memtest
    1.29 @@ -191,6 +198,7 @@
    1.30  		SmartBtmgr	"Boot any partition or ATAPI CD-ROM." on \
    1.31  		Plop		"Boot harddisk floppy CD/DVD or USB." off \
    1.32  		Etherboot	"Replacement for proprietary PXE ROMs." off \
    1.33 +		gPXE		"PXE boot with web boot failback." off \
    1.34  		Memtest86+	"Memory failures detection tool." off \
    1.35  		Grub		"Boot loader with command shell." off  2>&1 1>&3`
    1.36  	retval=$?
    1.37 @@ -230,6 +238,7 @@
    1.38  SmartBtmgr /usr/share/boot/btmgr btmgr
    1.39  Plop /usr/share/boot/plop.gz plop
    1.40  Etherboot /usr/share/boot/etherboot etherboot
    1.41 +gPXE /boot/gpxe gpxe
    1.42  Memtest86+ /usr/share/boot/memtest.lzma memtest
    1.43  Grub /usr/sbin/grub grub
    1.44  EOT
    1.45 @@ -250,7 +259,7 @@
    1.46      <text wrap="false" width-chars="44" use-markup="true">
    1.47        <label>
    1.48  "
    1.49 -Create a floppy to boot a LiveCD, in a PXE network...
    1.50 +Create a floppy to boot a LiveCD, in a PXE network or WEB...
    1.51  Need a floppy disk in drive. Erase the whole floppy disk.
    1.52  "
    1.53        </label>
    1.54 @@ -272,7 +281,7 @@
    1.55          </button>
    1.56        </hbox>
    1.57      </frame>
    1.58 -    <notebook labels="LiveCD|USB|PXE Network|Memory Test|Expert">
    1.59 +    <notebook labels="LiveCD|USB|PXE Network|WEB Network|Memory Test|Expert">
    1.60  '  
    1.61  while read name file pkg desc; do
    1.62      tmp="<frame $name>
    1.63 @@ -344,8 +353,9 @@
    1.64    BOOT_DIALOG="$BOOT_DIALOG$tmp"
    1.65  done <<EOT
    1.66  SmartBtmgr /usr/share/boot/btmgr btmgr This OS independent Smart Boot Manager can boot any          partition or ATAPI CD-ROM.
    1.67 -Plop /usr/share/boot/plop.gz plop This non free Boot Manager can boot floppy,         hardisk, CD/DVD or USB.
    1.68 +Plop /usr/share/boot/plop.gz plop This non free Boot Manager can boot floppy, hardisk, USB or CD/DVD. Hit Ctrl-ESC for text mode.
    1.69  Etherboot /usr/share/boot/etherboot etherboot This network bootloader provides a replacement for proprietary PXE or NBI ROMs.
    1.70 +gPXE /boot/gpxe gpxe This PXE / iSCSI / AoE network bootloader falls back to the http://boot.slitaz.org/ WEB boot.
    1.71  Memtest86+ /usr/share/boot/memtest.lzma memtest Memory failures detection tool.
    1.72  Grub /usr/sbin/grub grub General purpose boot loader with command shell
    1.73  EOT