12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- #!ipxe
- console --picture misc/splash.png
- menu netboot.${domain} PXE
-
- <?php
-
- $types = [['live', 'unix/live', 'Live'],
- ['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 shell Shell
- item reboot Reboot
- choose choice && goto ${choice}
-
- <?php
-
- echo $labels;
-
- ?>
- :chain-online
- chain http://netboot.rthoni.com/boot.ipxe
-
- :shell
- shell
-
- :reboot
- reboot
-
- :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-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
|