123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #!ipxe
- :main
- console --picture misc/splash.png
- menu netboot.${domain} PXE
-
- <?php
-
- $types = [['live', 'unix/live', 'Live'],
- ['livesquash', 'unix/livesquash', 'Live Squash'],
- ['iso', 'iso', 'ISO'],
- ['install', 'unix/install', 'Installers'],
- ['winpe', 'winpe', 'Windows PE']];
-
- $labels = "";
-
- foreach ($types as $type)
- {
- echo "\nitem --gap -- " . $type[2] . "\n";
- if (is_dir($type[1])) {
- $items = scandir($type[1]);
- if (is_null($items))
- continue;
- foreach ($items as $item)
- {
- if ($item[0] == '.')
- continue;
- $name = ucwords($item);
- $label = $item . '-' . $type[0];
- echo "item $label" . " $name\n";
- $labels .= "\n\n:" . $label . "\n";
- $labels .= 'set ' . $type[0] . ' ' . $item . "\n";
- $labels .= 'goto boot-' . $type[0] . "\n\n";
- }
- }
- }
-
- ?>
-
- item --gap -- Misc
- item chain-online Chain on rthoni.com
- item config Config
- item shell Shell
- item --gap -- Power
- item reboot Reboot
- item poweroff Poweroff
- choose choice && goto ${choice}
-
- <?php
-
- echo $labels;
-
- ?>
- :chain-online
- chain http://netboot.rthoni.com/boot.ipxe
-
- :config
- config
- goto main
-
- :shell
- shell
-
- :reboot
- reboot
-
- :poweroff
- poweroff
-
- :boot-install
- set unix install/${install}
- set options vga=788 -- quiet
- goto boot-unix
-
- :boot-live
- set unix live/${live}
- set options vga=normal ramdisk_size=14332 root=/dev/nfs nfsroot=10.15.44.1:/pxeroot/${live} rw --
- goto boot-unix
-
- :boot-livesquash
- kernel unix/livesquash/${livesquash}/vmlinuz
- initrd unix/livesquash/${livesquash}/initrd.img
- imgargs vmlinuz boot=live config hooks=filesystem username=live noeject fetch=http://netboot/unix/livesquash/${livesquash}/filesystem.squashfs
- boot
-
- :boot-unix
- initrd unix/${unix}/initrd.img
- boot unix/${unix}/vmlinuz ${options}
-
-
- :boot-iso
- initrd iso/${iso}
- chain /memdisk iso raw
- boot
-
- :boot-winpe
- kernel winpe/${winpe}/wimboot
- initrd winpe/${winpe}/bcd BCD
- initrd winpe/${winpe}/boot.sdi boot.sdi
- initrd winpe/${winpe}/boot.wim boot.wim
- boot
|