#!ipxe # Script: live/linux/grml.ipxe # ID: c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8 # For more information, see: # https://ipxe.org/ # https://ipxe.org/scripting ################################# # Script-wide/global variables. # ################################# :set_script_vars isset ${do_debug} || set do_debug 0 isset ${do_serial} || set do_serial 0 set base_url https://boot.netfire.com/ set http_base_url http://boot.netfire.com/ :set_bg iseq ${bg_set} 1 && goto skip_set_bg || echo Setting up menus... # Try different backgrounds sequentially until we find one that works. console --keep --picture ${base_url}bg.png && set bg_set 1 && goto skip_set_bg || console --keep --picture ${base_url}bg_lores.png && set bg_set 1 && goto skip_set_bg || console --keep --picture ${base_url}bg.pnm && set bg_set 1 && goto skip_set_bg || console --keep --picture ${base_url}bg_lores.pnm && set bg_set 1 && goto skip_set_bg || # Finally, fall back to text-only mode. echo Failed to use graphical console; reverting to text-only. console --x 1024 --y 768 || # "Red" xformed to a brighter/robust red) colour --rgb 0xb52a3d 1 || # "Green" xformed to orange) colour --rgb 0xcf6245 2 || # "Yellow" xformed to more of a gold) colour --rgb 0xc7a34d 3 || # "Magenta" xformed to a light purple) colour --rgb 0x6139a9 5 || # "Cyan" xformed to dark blue) colour --rgb 0x000120 6 || ## cpair --foreground 7 --background 5 0 || cpair --foreground 7 --background 6 1 || cpair --foreground 3 --background 6 2 || cpair --foreground 7 --background 6 3 || cpair --foreground 1 --background 6 4 || cpair --foreground 6 --background 1 5 || cpair --foreground 7 --background 6 6 || cpair --foreground 7 --background 6 7 || set bg_set 1 || :skip_set_bg set script_path ${base_url}live/linux/grml.ipxe || # If c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/prev (this script) is not set, assume this is the entry script. isset ${c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/prev} || set c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/prev ${script_path} isset ${entry_script} && goto skip_set_entry || set entry_script ${script_path} || :skip_set_entry # Since we are at the beginning of a script, we need to set this to "true". set prev_is_script 1 || ##################################### # End script-wide/global variables. # ##################################### :skip_script_vars ############################################ # Set hardware architecture and # # bitness strings for use in templating. # # Note: # # (U)EFI vs. BIOS can be determined by # # the ${platform} iPXE builtin. # # More information: # # https://ipxe.org/cfg/platform # ############################################ # bits: 64, 32 # # arch0: x86_64, i386, arm64, arm32 # # arch0u: X86_64, I386, ARM64, ARM32 # # arch1: x86_64, x86, arm64, arm32 # # arch1u: X86_64, X86, ARM64, ARM32 # # arch2: amd64, i686, arm64, arm32 # # arch2u: AMD64, I686, ARM64, ARM32 # # ${buildarch}: x86_64, i386, arm64, arm32 # # ${platform}: efi, pcbios, linux # ############################################ :setarch isset ${bits} && goto skiparch || set arch0 ${buildarch} goto setarch-${arch0} || goto exiterr :setarch-i386 # If true, it's a 32-bit build but a 64-bit CPU, so... cpuid --ext 29 && goto setarch-x86_64 || # Otherwise definitely 32-bit. set bits 32 set arch0u I386 set arch1 x86 set arch1u X86 set arch2 i686 set arch2u I686 goto skiparch :setarch-x86_64 iseq ${arch0} i386 && set arch0 x86_64 || set bits 64 set arch0u X86_64 set arch1 x86_64 set arch1u ${arch0u} set arch2 amd64 set arch2u AMD64 goto skiparch :setarch-arm32 set bits 32 set arch0u ARM32 set arch1 arm32 set arch1u ${arch0u} set arch2 ${arch1} set arch2u ${arch0u} goto skiparch :setarch-arm64 set bits 64 set arch0u ARM64 set arch1 arm64 set arch1u ${arch0u} set arch2 ${arch1} set arch2u ${arch0u} goto skiparch ########################################## # End hardware architecture and bitness. # ########################################## :skiparch ######################### # Convenience variables # ######################### :setconvenience isset ${esc} && goto skipconvenience || set esc:hex 1b set cls ${esc:string}[2J ############################# # End convenience variables # ############################# :skipconvenience ############################################### # Boot options for all (supported) MenuItems. # ############################################### :getbootopts # Bootopts for Standard ## "Live"/Active isset ${83b6cdf8-d106-4163-ab7c-458a80f9f239/bootopts} || set 83b6cdf8-d106-4163-ab7c-458a80f9f239/bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 ## Original set 83b6cdf8-d106-4163-ab7c-458a80f9f239/orig_bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 # Bootopts for Debug ## "Live"/Active isset ${3127f249-c8b0-4b8a-8e64-0560b248f374/bootopts} || set 3127f249-c8b0-4b8a-8e64-0560b248f374/bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 verbose debug=vc initcall systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M ## Original set 3127f249-c8b0-4b8a-8e64-0560b248f374/orig_bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 verbose debug=vc initcall systemd.log_level=debug systemd.log_target=kmsg log_buf_len=1M # Bootopts for Persistent Network Interface Names ## "Live"/Active isset ${516ff011-422a-45e2-8d71-5a4fbeabbbfa/bootopts} || set 516ff011-422a-45e2-8d71-5a4fbeabbbfa/bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 ## Original set 516ff011-422a-45e2-8d71-5a4fbeabbbfa/orig_bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 # Bootopts for Disabled Framebuffer ## "Live"/Active isset ${99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/bootopts} || set 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=normal radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 cirrus.modeset=0 mgag200.modeset=0 nomodeset net.ifnames=0 ## Original set 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/orig_bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=normal radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 cirrus.modeset=0 mgag200.modeset=0 nomodeset net.ifnames=0 # Bootopts for Disable Kernel Mode Setting ## "Live"/Active isset ${ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/bootopts} || set ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 cirrus.modeset=0 mgag200.modeset=0 nomodeset ## Original set ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/orig_bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 radeon.modeset=0 i915.modeset=0 nouveau.modeset=0 cirrus.modeset=0 mgag200.modeset=0 nomodeset # Bootopts for Forensic Mode ## "Live"/Active isset ${a6668c83-79a7-4c5e-a683-613909859e36/bootopts} || set a6668c83-79a7-4c5e-a683-613909859e36/bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 nofstab noraid nodmraid nolvm noautoconfig noswap raid=noauto detect read-only ## Original set a6668c83-79a7-4c5e-a683-613909859e36/orig_bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 nofstab noraid nodmraid nolvm noautoconfig noswap raid=noauto detect read-only # Bootopts for Graphical Mode ## "Live"/Active isset ${af709a65-4ac1-47fd-9310-bdf44ee590d5/bootopts} || set af709a65-4ac1-47fd-9310-bdf44ee590d5/bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 persistence ## Original set af709a65-4ac1-47fd-9310-bdf44ee590d5/orig_bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 persistence # Bootopts for Load to RAM ## "Live"/Active isset ${4cb8ce78-65e8-4302-9941-6a9b0e217979/bootopts} || set 4cb8ce78-65e8-4302-9941-6a9b0e217979/bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 persistence ## Original set 4cb8ce78-65e8-4302-9941-6a9b0e217979/orig_bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 persistence # Bootopts for Persistent Mode ## "Live"/Active isset ${2463011c-b24e-4fb1-a17b-9591ef4a302a/bootopts} || set 2463011c-b24e-4fb1-a17b-9591ef4a302a/bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 persistence ## Original set 2463011c-b24e-4fb1-a17b-9591ef4a302a/orig_bootopts boot=live fetch=${http_base_url}loop/grml/live/grml64-full/grml64-full.squashfs apm=power-off nomce ssh encpasswd=$6$rounds=1000000$8Lpa7wUSlsEfUDEe$xl/0km886Pujmp2w00IbxT81ekvZljED1Fe2FProldQiO/OzpT6urmUeXZ4liDMwhULlha66jYrljy5oHOiaq0 initrd=initrd.img vga=791 net.ifnames=0 persistence ##################### # End boot options. # ##################### :skipgetbootopts ########################## # Target Selection/flow. # ########################## :findtarget # If we previously loaded (and left/attempted to leave) a menu within this script, # ${c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt} will be set to that menu's label. # It will be unset/null (${} -- `isset ${foo} == false` is the same as `iseq ${foo} == ${}` if it is unset.) # if this is the first time loading this script. isset ${c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt} && goto ${c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt} || ######################## # End Target Selection # ######################## :skipfindtarget ##################### # Menu definitions. # ##################### :menudefs ############## # BEGIN MENU # ############## :a4baf53b-79c4-4b62-9fcf-27b97a3eb267 # Menu: "GRML" # Label: a4baf53b-79c4-4b62-9fcf-27b97a3eb267 set prev_menu a4baf53b-79c4-4b62-9fcf-27b97a3eb267 set c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt a4baf53b-79c4-4b62-9fcf-27b97a3eb267 # Script main/default menu. set prev_is_script 1 menu GRML item --key s 83b6cdf8-d106-4163-ab7c-458a80f9f239 (s) Standard set 83b6cdf8-d106-4163-ab7c-458a80f9f239/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267 item --key d 3127f249-c8b0-4b8a-8e64-0560b248f374 (d) Debug set 3127f249-c8b0-4b8a-8e64-0560b248f374/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267 item --key p 516ff011-422a-45e2-8d71-5a4fbeabbbfa (p) Persistent Network Interface Names set 516ff011-422a-45e2-8d71-5a4fbeabbbfa/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267 item --key D 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b (D) Disabled Framebuffer set 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267 item --key i ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6 (i) Disable Kernel Mode Setting set ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267 item --key f a6668c83-79a7-4c5e-a683-613909859e36 (f) Forensic Mode set a6668c83-79a7-4c5e-a683-613909859e36/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267 item --key g af709a65-4ac1-47fd-9310-bdf44ee590d5 (g) Graphical Mode set af709a65-4ac1-47fd-9310-bdf44ee590d5/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267 item --key l 4cb8ce78-65e8-4302-9941-6a9b0e217979 (l) Load to RAM set 4cb8ce78-65e8-4302-9941-6a9b0e217979/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267 item --key P 2463011c-b24e-4fb1-a17b-9591ef4a302a (P) Persistent Mode set 2463011c-b24e-4fb1-a17b-9591ef4a302a/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267 item --gap item --key 0x147e a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help (F8) Help > set a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267 item --key 0x157e a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg (F9) Configure boot options for item(s) above set a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267 item --key 0x1b previous (ESC) Previous menu item --key 0x167e main_menu (F10) Main Menu ... choose target || goto ${target} || goto ${a4baf53b-79c4-4b62-9fcf-27b97a3eb267/prev} || goto previous ############ # END MENU # ############ ###################### # BEGIN SUBMENU HELP # ###################### # Menu: "GRML" (HELP) # Label: a4baf53b-79c4-4b62-9fcf-27b97a3eb267 :a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help set prev_menu a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help set c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help menu GRML Help item 83b6cdf8-d106-4163-ab7c-458a80f9f239_help Standard > set 83b6cdf8-d106-4163-ab7c-458a80f9f239/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help item 3127f249-c8b0-4b8a-8e64-0560b248f374_help Debug > set 3127f249-c8b0-4b8a-8e64-0560b248f374/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help item 516ff011-422a-45e2-8d71-5a4fbeabbbfa_help Persistent Network Interface Names > set 516ff011-422a-45e2-8d71-5a4fbeabbbfa/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help item 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b_help Disabled Framebuffer > set 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help item ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6_help Disable Kernel Mode Setting > set ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help item a6668c83-79a7-4c5e-a683-613909859e36_help Forensic Mode > set a6668c83-79a7-4c5e-a683-613909859e36/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help item af709a65-4ac1-47fd-9310-bdf44ee590d5_help Graphical Mode > set af709a65-4ac1-47fd-9310-bdf44ee590d5/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help item 4cb8ce78-65e8-4302-9941-6a9b0e217979_help Load to RAM > set 4cb8ce78-65e8-4302-9941-6a9b0e217979/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help item 2463011c-b24e-4fb1-a17b-9591ef4a302a_help Persistent Mode > set 2463011c-b24e-4fb1-a17b-9591ef4a302a/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help item --gap item --key 0x1b previous (ESC) Previous menu item --key 0x167e main_menu (F10) Main Menu ... choose target || goto ${target} || goto ${a4baf53b-79c4-4b62-9fcf-27b97a3eb267_help/prev} || goto previous #################### # END SUBMENU HELP # #################### ######################## # BEGIN SUBMENU CONFIG # ######################## # Menu: "GRML" (CONFIGURATION) # Label: a4baf53b-79c4-4b62-9fcf-27b97a3eb267 :a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg set prev_menu a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg set c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg menu GRML Configuration item 83b6cdf8-d106-4163-ab7c-458a80f9f239_cfg Standard > set 83b6cdf8-d106-4163-ab7c-458a80f9f239/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg item 3127f249-c8b0-4b8a-8e64-0560b248f374_cfg Debug > set 3127f249-c8b0-4b8a-8e64-0560b248f374/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg item 516ff011-422a-45e2-8d71-5a4fbeabbbfa_cfg Persistent Network Interface Names > set 516ff011-422a-45e2-8d71-5a4fbeabbbfa/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg item 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b_cfg Disabled Framebuffer > set 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg item ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6_cfg Disable Kernel Mode Setting > set ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg item a6668c83-79a7-4c5e-a683-613909859e36_cfg Forensic Mode > set a6668c83-79a7-4c5e-a683-613909859e36/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg item af709a65-4ac1-47fd-9310-bdf44ee590d5_cfg Graphical Mode > set af709a65-4ac1-47fd-9310-bdf44ee590d5/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg item 4cb8ce78-65e8-4302-9941-6a9b0e217979_cfg Load to RAM > set 4cb8ce78-65e8-4302-9941-6a9b0e217979/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg item 2463011c-b24e-4fb1-a17b-9591ef4a302a_cfg Persistent Mode > set 2463011c-b24e-4fb1-a17b-9591ef4a302a/prev a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg item --gap item --key 0x1b previous (ESC) Previous menu item --key 0x167e main_menu (F10) Main Menu ... choose target || goto ${target} || goto ${a4baf53b-79c4-4b62-9fcf-27b97a3eb267_cfg/prev} || goto previous ###################### # END SUBMENU CONFIG # ###################### ################# # BEGIN ENTRIES # ################# # Entries for menu "GRML" (a4baf53b-79c4-4b62-9fcf-27b97a3eb267) ############### # BEGIN ENTRY # ############### # Entry: "Standard" # Label: 83b6cdf8-d106-4163-ab7c-458a80f9f239 # Type: ItemTypeKernel # https://grml.org/ # GRML Standard mode options. :83b6cdf8-d106-4163-ab7c-458a80f9f239 set prev_is_script 0 iseq ${do_serial} 1 && kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${83b6cdf8-d106-4163-ab7c-458a80f9f239/bootopts} console=tty1 console=ttyS0,9600n8 noquick || kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${83b6cdf8-d106-4163-ab7c-458a80f9f239/bootopts} || goto previous initrd ${base_url}loop/grml/boot/grml64full/initrd.img || goto previous boot || goto ${83b6cdf8-d106-4163-ab7c-458a80f9f239/prev} || goto previous ############# # END ENTRY # ############# #################### # BEGIN ENTRY HELP # #################### # Entry: "Standard" (HELP) # Label: 83b6cdf8-d106-4163-ab7c-458a80f9f239 # Type: ItemTypeKernel # https://grml.org/ # GRML Standard mode options. :83b6cdf8-d106-4163-ab7c-458a80f9f239_help set prev_is_script 0 set 83b6cdf8-d106-4163-ab7c-458a80f9f239_help/prev 83b6cdf8-d106-4163-ab7c-458a80f9f239 echo Standard: echo GRML Standard mode options. prompt (Press any key to exit) goto ${83b6cdf8-d106-4163-ab7c-458a80f9f239/prev} || goto previous ################## # END ENTRY HELP # ################## ###################### # BEGIN ENTRY CONFIG # ###################### # Entry: "Standard" (CONFIGURATION) # Label: 83b6cdf8-d106-4163-ab7c-458a80f9f239 # Type: ItemTypeKernel # https://grml.org/ # GRML Standard mode options. :83b6cdf8-d106-4163-ab7c-458a80f9f239_cfg set prev_is_script 0 echo Set custom boot options for Standard below. echo Leave blank to use the currently configured options. echo Use the string "%DEFAULT%" (without quotes) to reset to the default. echo echo CURRENT: echo ${83b6cdf8-d106-4163-ab7c-458a80f9f239/bootopts} echo echo DEFAULT: echo ${83b6cdf8-d106-4163-ab7c-458a80f9f239/orig_bootopts} echo echo -n Boot options: ${} && read user_bootopts || goto prev_menu_83b6cdf8-d106-4163-ab7c-458a80f9f239_cfg iseq ${user_bootopts} ${} && goto prev_menu_83b6cdf8-d106-4163-ab7c-458a80f9f239_cfg || iseq ${user_bootopts} %DEFAULT% && set 83b6cdf8-d106-4163-ab7c-458a80f9f239/bootopts ${83b6cdf8-d106-4163-ab7c-458a80f9f239/orig_bootopts} && goto prev_menu_83b6cdf8-d106-4163-ab7c-458a80f9f239_cfg || set 83b6cdf8-d106-4163-ab7c-458a80f9f239/bootopts ${user_bootopts} && goto ${83b6cdf8-d106-4163-ab7c-458a80f9f239/prev} || goto previous #################### # END ENTRY CONFIG # #################### ############### # BEGIN ENTRY # ############### # Entry: "Debug" # Label: 3127f249-c8b0-4b8a-8e64-0560b248f374 # Type: ItemTypeKernel # https://grml.org/ # GRML Debug mode options. :3127f249-c8b0-4b8a-8e64-0560b248f374 set prev_is_script 0 iseq ${do_serial} 1 && kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${3127f249-c8b0-4b8a-8e64-0560b248f374/bootopts} console=tty1 console=ttyS0,9600n8 noquick || kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${3127f249-c8b0-4b8a-8e64-0560b248f374/bootopts} || goto previous initrd ${base_url}loop/grml/boot/grml64full/initrd.img || goto previous boot || goto ${3127f249-c8b0-4b8a-8e64-0560b248f374/prev} || goto previous ############# # END ENTRY # ############# #################### # BEGIN ENTRY HELP # #################### # Entry: "Debug" (HELP) # Label: 3127f249-c8b0-4b8a-8e64-0560b248f374 # Type: ItemTypeKernel # https://grml.org/ # GRML Debug mode options. :3127f249-c8b0-4b8a-8e64-0560b248f374_help set prev_is_script 0 set 3127f249-c8b0-4b8a-8e64-0560b248f374_help/prev 3127f249-c8b0-4b8a-8e64-0560b248f374 echo Debug: echo GRML Debug mode options. prompt (Press any key to exit) goto ${3127f249-c8b0-4b8a-8e64-0560b248f374/prev} || goto previous ################## # END ENTRY HELP # ################## ###################### # BEGIN ENTRY CONFIG # ###################### # Entry: "Debug" (CONFIGURATION) # Label: 3127f249-c8b0-4b8a-8e64-0560b248f374 # Type: ItemTypeKernel # https://grml.org/ # GRML Debug mode options. :3127f249-c8b0-4b8a-8e64-0560b248f374_cfg set prev_is_script 0 echo Set custom boot options for Debug below. echo Leave blank to use the currently configured options. echo Use the string "%DEFAULT%" (without quotes) to reset to the default. echo echo CURRENT: echo ${3127f249-c8b0-4b8a-8e64-0560b248f374/bootopts} echo echo DEFAULT: echo ${3127f249-c8b0-4b8a-8e64-0560b248f374/orig_bootopts} echo echo -n Boot options: ${} && read user_bootopts || goto prev_menu_3127f249-c8b0-4b8a-8e64-0560b248f374_cfg iseq ${user_bootopts} ${} && goto prev_menu_3127f249-c8b0-4b8a-8e64-0560b248f374_cfg || iseq ${user_bootopts} %DEFAULT% && set 3127f249-c8b0-4b8a-8e64-0560b248f374/bootopts ${3127f249-c8b0-4b8a-8e64-0560b248f374/orig_bootopts} && goto prev_menu_3127f249-c8b0-4b8a-8e64-0560b248f374_cfg || set 3127f249-c8b0-4b8a-8e64-0560b248f374/bootopts ${user_bootopts} && goto ${3127f249-c8b0-4b8a-8e64-0560b248f374/prev} || goto previous #################### # END ENTRY CONFIG # #################### ############### # BEGIN ENTRY # ############### # Entry: "Persistent Network Interface Names" # Label: 516ff011-422a-45e2-8d71-5a4fbeabbbfa # Type: ItemTypeKernel # https://grml.org/ # GRML with persistent network interface naming. :516ff011-422a-45e2-8d71-5a4fbeabbbfa set prev_is_script 0 iseq ${do_serial} 1 && kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${516ff011-422a-45e2-8d71-5a4fbeabbbfa/bootopts} console=tty1 console=ttyS0,9600n8 noquick || kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${516ff011-422a-45e2-8d71-5a4fbeabbbfa/bootopts} || goto previous initrd ${base_url}loop/grml/boot/grml64full/initrd.img || goto previous boot || goto ${516ff011-422a-45e2-8d71-5a4fbeabbbfa/prev} || goto previous ############# # END ENTRY # ############# #################### # BEGIN ENTRY HELP # #################### # Entry: "Persistent Network Interface Names" (HELP) # Label: 516ff011-422a-45e2-8d71-5a4fbeabbbfa # Type: ItemTypeKernel # https://grml.org/ # GRML with persistent network interface naming. :516ff011-422a-45e2-8d71-5a4fbeabbbfa_help set prev_is_script 0 set 516ff011-422a-45e2-8d71-5a4fbeabbbfa_help/prev 516ff011-422a-45e2-8d71-5a4fbeabbbfa echo Persistent Network Interface Names: echo GRML with persistent network interface naming. prompt (Press any key to exit) goto ${516ff011-422a-45e2-8d71-5a4fbeabbbfa/prev} || goto previous ################## # END ENTRY HELP # ################## ###################### # BEGIN ENTRY CONFIG # ###################### # Entry: "Persistent Network Interface Names" (CONFIGURATION) # Label: 516ff011-422a-45e2-8d71-5a4fbeabbbfa # Type: ItemTypeKernel # https://grml.org/ # GRML with persistent network interface naming. :516ff011-422a-45e2-8d71-5a4fbeabbbfa_cfg set prev_is_script 0 echo Set custom boot options for Persistent Network Interface Names below. echo Leave blank to use the currently configured options. echo Use the string "%DEFAULT%" (without quotes) to reset to the default. echo echo CURRENT: echo ${516ff011-422a-45e2-8d71-5a4fbeabbbfa/bootopts} echo echo DEFAULT: echo ${516ff011-422a-45e2-8d71-5a4fbeabbbfa/orig_bootopts} echo echo -n Boot options: ${} && read user_bootopts || goto prev_menu_516ff011-422a-45e2-8d71-5a4fbeabbbfa_cfg iseq ${user_bootopts} ${} && goto prev_menu_516ff011-422a-45e2-8d71-5a4fbeabbbfa_cfg || iseq ${user_bootopts} %DEFAULT% && set 516ff011-422a-45e2-8d71-5a4fbeabbbfa/bootopts ${516ff011-422a-45e2-8d71-5a4fbeabbbfa/orig_bootopts} && goto prev_menu_516ff011-422a-45e2-8d71-5a4fbeabbbfa_cfg || set 516ff011-422a-45e2-8d71-5a4fbeabbbfa/bootopts ${user_bootopts} && goto ${516ff011-422a-45e2-8d71-5a4fbeabbbfa/prev} || goto previous #################### # END ENTRY CONFIG # #################### ############### # BEGIN ENTRY # ############### # Entry: "Disabled Framebuffer" # Label: 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b # Type: ItemTypeKernel # https://grml.org/ # GRML with no framebuffer console. :99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b set prev_is_script 0 iseq ${do_serial} 1 && kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/bootopts} console=tty1 console=ttyS0,9600n8 noquick || kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/bootopts} || goto previous initrd ${base_url}loop/grml/boot/grml64full/initrd.img || goto previous boot || goto ${99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/prev} || goto previous ############# # END ENTRY # ############# #################### # BEGIN ENTRY HELP # #################### # Entry: "Disabled Framebuffer" (HELP) # Label: 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b # Type: ItemTypeKernel # https://grml.org/ # GRML with no framebuffer console. :99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b_help set prev_is_script 0 set 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b_help/prev 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b echo Disabled Framebuffer: echo GRML with no framebuffer console. prompt (Press any key to exit) goto ${99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/prev} || goto previous ################## # END ENTRY HELP # ################## ###################### # BEGIN ENTRY CONFIG # ###################### # Entry: "Disabled Framebuffer" (CONFIGURATION) # Label: 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b # Type: ItemTypeKernel # https://grml.org/ # GRML with no framebuffer console. :99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b_cfg set prev_is_script 0 echo Set custom boot options for Disabled Framebuffer below. echo Leave blank to use the currently configured options. echo Use the string "%DEFAULT%" (without quotes) to reset to the default. echo echo CURRENT: echo ${99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/bootopts} echo echo DEFAULT: echo ${99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/orig_bootopts} echo echo -n Boot options: ${} && read user_bootopts || goto prev_menu_99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b_cfg iseq ${user_bootopts} ${} && goto prev_menu_99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b_cfg || iseq ${user_bootopts} %DEFAULT% && set 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/bootopts ${99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/orig_bootopts} && goto prev_menu_99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b_cfg || set 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/bootopts ${user_bootopts} && goto ${99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/prev} || goto previous #################### # END ENTRY CONFIG # #################### ############### # BEGIN ENTRY # ############### # Entry: "Disable Kernel Mode Setting" # Label: ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6 # Type: ItemTypeKernel # https://grml.org/ # GRML with kernel mode setting disabled (but with framebuffer). :ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6 set prev_is_script 0 iseq ${do_serial} 1 && kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/bootopts} console=tty1 console=ttyS0,9600n8 noquick || kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/bootopts} || goto previous initrd ${base_url}loop/grml/boot/grml64full/initrd.img || goto previous boot || goto ${ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/prev} || goto previous ############# # END ENTRY # ############# #################### # BEGIN ENTRY HELP # #################### # Entry: "Disable Kernel Mode Setting" (HELP) # Label: ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6 # Type: ItemTypeKernel # https://grml.org/ # GRML with kernel mode setting disabled (but with framebuffer). :ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6_help set prev_is_script 0 set ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6_help/prev ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6 echo Disable Kernel Mode Setting: echo GRML with kernel mode setting disabled (but with framebuffer). prompt (Press any key to exit) goto ${ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/prev} || goto previous ################## # END ENTRY HELP # ################## ###################### # BEGIN ENTRY CONFIG # ###################### # Entry: "Disable Kernel Mode Setting" (CONFIGURATION) # Label: ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6 # Type: ItemTypeKernel # https://grml.org/ # GRML with kernel mode setting disabled (but with framebuffer). :ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6_cfg set prev_is_script 0 echo Set custom boot options for Disable Kernel Mode Setting below. echo Leave blank to use the currently configured options. echo Use the string "%DEFAULT%" (without quotes) to reset to the default. echo echo CURRENT: echo ${ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/bootopts} echo echo DEFAULT: echo ${ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/orig_bootopts} echo echo -n Boot options: ${} && read user_bootopts || goto prev_menu_ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6_cfg iseq ${user_bootopts} ${} && goto prev_menu_ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6_cfg || iseq ${user_bootopts} %DEFAULT% && set ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/bootopts ${ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/orig_bootopts} && goto prev_menu_ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6_cfg || set ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/bootopts ${user_bootopts} && goto ${ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/prev} || goto previous #################### # END ENTRY CONFIG # #################### ############### # BEGIN ENTRY # ############### # Entry: "Forensic Mode" # Label: a6668c83-79a7-4c5e-a683-613909859e36 # Type: ItemTypeKernel # https://grml.org/ # GRML in "forensic mode" will not make any modifications to disks. :a6668c83-79a7-4c5e-a683-613909859e36 set prev_is_script 0 iseq ${do_serial} 1 && kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${a6668c83-79a7-4c5e-a683-613909859e36/bootopts} console=tty1 console=ttyS0,9600n8 noquick || kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${a6668c83-79a7-4c5e-a683-613909859e36/bootopts} || goto previous initrd ${base_url}loop/grml/boot/grml64full/initrd.img || goto previous boot || goto ${a6668c83-79a7-4c5e-a683-613909859e36/prev} || goto previous ############# # END ENTRY # ############# #################### # BEGIN ENTRY HELP # #################### # Entry: "Forensic Mode" (HELP) # Label: a6668c83-79a7-4c5e-a683-613909859e36 # Type: ItemTypeKernel # https://grml.org/ # GRML in "forensic mode" will not make any modifications to disks. :a6668c83-79a7-4c5e-a683-613909859e36_help set prev_is_script 0 set a6668c83-79a7-4c5e-a683-613909859e36_help/prev a6668c83-79a7-4c5e-a683-613909859e36 echo Forensic Mode: echo GRML in "forensic mode" will not make any modifications to disks. prompt (Press any key to exit) goto ${a6668c83-79a7-4c5e-a683-613909859e36/prev} || goto previous ################## # END ENTRY HELP # ################## ###################### # BEGIN ENTRY CONFIG # ###################### # Entry: "Forensic Mode" (CONFIGURATION) # Label: a6668c83-79a7-4c5e-a683-613909859e36 # Type: ItemTypeKernel # https://grml.org/ # GRML in "forensic mode" will not make any modifications to disks. :a6668c83-79a7-4c5e-a683-613909859e36_cfg set prev_is_script 0 echo Set custom boot options for Forensic Mode below. echo Leave blank to use the currently configured options. echo Use the string "%DEFAULT%" (without quotes) to reset to the default. echo echo CURRENT: echo ${a6668c83-79a7-4c5e-a683-613909859e36/bootopts} echo echo DEFAULT: echo ${a6668c83-79a7-4c5e-a683-613909859e36/orig_bootopts} echo echo -n Boot options: ${} && read user_bootopts || goto prev_menu_a6668c83-79a7-4c5e-a683-613909859e36_cfg iseq ${user_bootopts} ${} && goto prev_menu_a6668c83-79a7-4c5e-a683-613909859e36_cfg || iseq ${user_bootopts} %DEFAULT% && set a6668c83-79a7-4c5e-a683-613909859e36/bootopts ${a6668c83-79a7-4c5e-a683-613909859e36/orig_bootopts} && goto prev_menu_a6668c83-79a7-4c5e-a683-613909859e36_cfg || set a6668c83-79a7-4c5e-a683-613909859e36/bootopts ${user_bootopts} && goto ${a6668c83-79a7-4c5e-a683-613909859e36/prev} || goto previous #################### # END ENTRY CONFIG # #################### ############### # BEGIN ENTRY # ############### # Entry: "Graphical Mode" # Label: af709a65-4ac1-47fd-9310-bdf44ee590d5 # Type: ItemTypeKernel # https://grml.org/ # GRML booting straight into X windowing. :af709a65-4ac1-47fd-9310-bdf44ee590d5 set prev_is_script 0 iseq ${do_serial} 1 && kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${af709a65-4ac1-47fd-9310-bdf44ee590d5/bootopts} console=tty1 console=ttyS0,9600n8 noquick || kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${af709a65-4ac1-47fd-9310-bdf44ee590d5/bootopts} || goto previous initrd ${base_url}loop/grml/boot/grml64full/initrd.img || goto previous boot || goto ${af709a65-4ac1-47fd-9310-bdf44ee590d5/prev} || goto previous ############# # END ENTRY # ############# #################### # BEGIN ENTRY HELP # #################### # Entry: "Graphical Mode" (HELP) # Label: af709a65-4ac1-47fd-9310-bdf44ee590d5 # Type: ItemTypeKernel # https://grml.org/ # GRML booting straight into X windowing. :af709a65-4ac1-47fd-9310-bdf44ee590d5_help set prev_is_script 0 set af709a65-4ac1-47fd-9310-bdf44ee590d5_help/prev af709a65-4ac1-47fd-9310-bdf44ee590d5 echo Graphical Mode: echo GRML booting straight into X windowing. prompt (Press any key to exit) goto ${af709a65-4ac1-47fd-9310-bdf44ee590d5/prev} || goto previous ################## # END ENTRY HELP # ################## ###################### # BEGIN ENTRY CONFIG # ###################### # Entry: "Graphical Mode" (CONFIGURATION) # Label: af709a65-4ac1-47fd-9310-bdf44ee590d5 # Type: ItemTypeKernel # https://grml.org/ # GRML booting straight into X windowing. :af709a65-4ac1-47fd-9310-bdf44ee590d5_cfg set prev_is_script 0 echo Set custom boot options for Graphical Mode below. echo Leave blank to use the currently configured options. echo Use the string "%DEFAULT%" (without quotes) to reset to the default. echo echo CURRENT: echo ${af709a65-4ac1-47fd-9310-bdf44ee590d5/bootopts} echo echo DEFAULT: echo ${af709a65-4ac1-47fd-9310-bdf44ee590d5/orig_bootopts} echo echo -n Boot options: ${} && read user_bootopts || goto prev_menu_af709a65-4ac1-47fd-9310-bdf44ee590d5_cfg iseq ${user_bootopts} ${} && goto prev_menu_af709a65-4ac1-47fd-9310-bdf44ee590d5_cfg || iseq ${user_bootopts} %DEFAULT% && set af709a65-4ac1-47fd-9310-bdf44ee590d5/bootopts ${af709a65-4ac1-47fd-9310-bdf44ee590d5/orig_bootopts} && goto prev_menu_af709a65-4ac1-47fd-9310-bdf44ee590d5_cfg || set af709a65-4ac1-47fd-9310-bdf44ee590d5/bootopts ${user_bootopts} && goto ${af709a65-4ac1-47fd-9310-bdf44ee590d5/prev} || goto previous #################### # END ENTRY CONFIG # #################### ############### # BEGIN ENTRY # ############### # Entry: "Load to RAM" # Label: 4cb8ce78-65e8-4302-9941-6a9b0e217979 # Type: ItemTypeKernel # https://grml.org/ # GRML will be copied into RAM instead of being pulled on-demand. :4cb8ce78-65e8-4302-9941-6a9b0e217979 set prev_is_script 0 iseq ${do_serial} 1 && kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${4cb8ce78-65e8-4302-9941-6a9b0e217979/bootopts} console=tty1 console=ttyS0,9600n8 noquick || kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${4cb8ce78-65e8-4302-9941-6a9b0e217979/bootopts} || goto previous initrd ${base_url}loop/grml/boot/grml64full/initrd.img || goto previous boot || goto ${4cb8ce78-65e8-4302-9941-6a9b0e217979/prev} || goto previous ############# # END ENTRY # ############# #################### # BEGIN ENTRY HELP # #################### # Entry: "Load to RAM" (HELP) # Label: 4cb8ce78-65e8-4302-9941-6a9b0e217979 # Type: ItemTypeKernel # https://grml.org/ # GRML will be copied into RAM instead of being pulled on-demand. :4cb8ce78-65e8-4302-9941-6a9b0e217979_help set prev_is_script 0 set 4cb8ce78-65e8-4302-9941-6a9b0e217979_help/prev 4cb8ce78-65e8-4302-9941-6a9b0e217979 echo Load to RAM: echo GRML will be copied into RAM instead of being pulled on-demand. prompt (Press any key to exit) goto ${4cb8ce78-65e8-4302-9941-6a9b0e217979/prev} || goto previous ################## # END ENTRY HELP # ################## ###################### # BEGIN ENTRY CONFIG # ###################### # Entry: "Load to RAM" (CONFIGURATION) # Label: 4cb8ce78-65e8-4302-9941-6a9b0e217979 # Type: ItemTypeKernel # https://grml.org/ # GRML will be copied into RAM instead of being pulled on-demand. :4cb8ce78-65e8-4302-9941-6a9b0e217979_cfg set prev_is_script 0 echo Set custom boot options for Load to RAM below. echo Leave blank to use the currently configured options. echo Use the string "%DEFAULT%" (without quotes) to reset to the default. echo echo CURRENT: echo ${4cb8ce78-65e8-4302-9941-6a9b0e217979/bootopts} echo echo DEFAULT: echo ${4cb8ce78-65e8-4302-9941-6a9b0e217979/orig_bootopts} echo echo -n Boot options: ${} && read user_bootopts || goto prev_menu_4cb8ce78-65e8-4302-9941-6a9b0e217979_cfg iseq ${user_bootopts} ${} && goto prev_menu_4cb8ce78-65e8-4302-9941-6a9b0e217979_cfg || iseq ${user_bootopts} %DEFAULT% && set 4cb8ce78-65e8-4302-9941-6a9b0e217979/bootopts ${4cb8ce78-65e8-4302-9941-6a9b0e217979/orig_bootopts} && goto prev_menu_4cb8ce78-65e8-4302-9941-6a9b0e217979_cfg || set 4cb8ce78-65e8-4302-9941-6a9b0e217979/bootopts ${user_bootopts} && goto ${4cb8ce78-65e8-4302-9941-6a9b0e217979/prev} || goto previous #################### # END ENTRY CONFIG # #################### ############### # BEGIN ENTRY # ############### # Entry: "Persistent Mode" # Label: 2463011c-b24e-4fb1-a17b-9591ef4a302a # Type: ItemTypeKernel # https://grml.org/ # GRML with persistency mounting. :2463011c-b24e-4fb1-a17b-9591ef4a302a set prev_is_script 0 iseq ${do_serial} 1 && kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${2463011c-b24e-4fb1-a17b-9591ef4a302a/bootopts} console=tty1 console=ttyS0,9600n8 noquick || kernel ${base_url}loop/grml/boot/grml64full/vmlinuz ${2463011c-b24e-4fb1-a17b-9591ef4a302a/bootopts} || goto previous initrd ${base_url}loop/grml/boot/grml64full/initrd.img || goto previous boot || goto ${2463011c-b24e-4fb1-a17b-9591ef4a302a/prev} || goto previous ############# # END ENTRY # ############# #################### # BEGIN ENTRY HELP # #################### # Entry: "Persistent Mode" (HELP) # Label: 2463011c-b24e-4fb1-a17b-9591ef4a302a # Type: ItemTypeKernel # https://grml.org/ # GRML with persistency mounting. :2463011c-b24e-4fb1-a17b-9591ef4a302a_help set prev_is_script 0 set 2463011c-b24e-4fb1-a17b-9591ef4a302a_help/prev 2463011c-b24e-4fb1-a17b-9591ef4a302a echo Persistent Mode: echo GRML with persistency mounting. prompt (Press any key to exit) goto ${2463011c-b24e-4fb1-a17b-9591ef4a302a/prev} || goto previous ################## # END ENTRY HELP # ################## ###################### # BEGIN ENTRY CONFIG # ###################### # Entry: "Persistent Mode" (CONFIGURATION) # Label: 2463011c-b24e-4fb1-a17b-9591ef4a302a # Type: ItemTypeKernel # https://grml.org/ # GRML with persistency mounting. :2463011c-b24e-4fb1-a17b-9591ef4a302a_cfg set prev_is_script 0 echo Set custom boot options for Persistent Mode below. echo Leave blank to use the currently configured options. echo Use the string "%DEFAULT%" (without quotes) to reset to the default. echo echo CURRENT: echo ${2463011c-b24e-4fb1-a17b-9591ef4a302a/bootopts} echo echo DEFAULT: echo ${2463011c-b24e-4fb1-a17b-9591ef4a302a/orig_bootopts} echo echo -n Boot options: ${} && read user_bootopts || goto prev_menu_2463011c-b24e-4fb1-a17b-9591ef4a302a_cfg iseq ${user_bootopts} ${} && goto prev_menu_2463011c-b24e-4fb1-a17b-9591ef4a302a_cfg || iseq ${user_bootopts} %DEFAULT% && set 2463011c-b24e-4fb1-a17b-9591ef4a302a/bootopts ${2463011c-b24e-4fb1-a17b-9591ef4a302a/orig_bootopts} && goto prev_menu_2463011c-b24e-4fb1-a17b-9591ef4a302a_cfg || set 2463011c-b24e-4fb1-a17b-9591ef4a302a/bootopts ${user_bootopts} && goto ${2463011c-b24e-4fb1-a17b-9591ef4a302a/prev} || goto previous #################### # END ENTRY CONFIG # #################### # End entries for menu "GRML" (a4baf53b-79c4-4b62-9fcf-27b97a3eb267) ############### # END ENTRIES # ############### ######################### # End menu definitions. # ######################### :skipmenudefs ###################################### # Menu navigation and exit handling. # ###################################### :previous iseq ${do_debug} 1 && goto prev_debug || goto prev_no_debug :prev_debug ## Debugging ## echo cls: ${cls} echo prev_is_script: ${prev_is_script} echo c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt: ${c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt} echo main_menu: ${main_menu} echo prev_menu: ${prev_menu} echo prev_menu (dereferenced); ${prev_menu}/prev: ${${prev_menu}/prev} echo Script live/linux/grml.ipxe (current script): # The "${} ${} " is to force two spaces. They'd be trimmed otherwise. echo ${} ${} c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/prev: ${c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/prev} echo ${} ${} c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt: ${c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt} echo Menus (local to this script) (A blank /prev tends to indicate script's default/entry menu): echo ${} ${} a4baf53b-79c4-4b62-9fcf-27b97a3eb267 ("GRML") echo ${} ${} ${} ${} a4baf53b-79c4-4b62-9fcf-27b97a3eb267/prev: ${a4baf53b-79c4-4b62-9fcf-27b97a3eb267/prev} echo ${} ${} ${} ${} a4baf53b-79c4-4b62-9fcf-27b97a3eb267/tgt: ${a4baf53b-79c4-4b62-9fcf-27b97a3eb267/tgt} echo target: ${target} echo main_menu: ${main_menu} prompt (press any key to continue to arch) echo echo bits: 64, 32 echo arch0: x86_64, i386, arm64, arm32 echo arch0u: X86_64, I386, ARM64, ARM32 echo arch1: x86_64, x86, arm64, arm32 echo arch1u: X86_64, X86, ARM64, ARM32 echo arch2: amd64, i686, arm64, arm32 echo arch2u: AMD64, I686, ARM64, ARM32 echo buildarch: x86_64, i386, arm64, arm32 echo platform: efi, pcbios, linux echo echo bits, arch0, arch0u, arch1, arch1u, arch2, arch2u, buildarch, platform: echo ${bits}, ${arch0}, ${arch0u}, ${arch1}, ${arch1u}, ${arch2}, ${arch2u}, ${buildarch}, ${platform} echo # ECHO DEBUG OF PREV_NO_DEBUG HERE prompt (press any key to continue regular previous target) :prev_no_debug :prev_test0 # If prev_is_script is true and prev_c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8 is set and is this script, # assume exit (as this is probably entry_script, and "previous" dest in this logic tree is to actually exit). # Otherwise continue. iseq ${do_debug} 1 && prompt (PREVIOUS: prev_test0) || iseq ${prev_is_script} 1 && iseq ${prev_c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8} ${script_path} && exit || :prev_test1 # If c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt is set and prev_is_script is false, go to menu in this script - otherwise continue. iseq ${do_debug} 1 && prompt (PREVIOUS: prev_test1) || iseq ${prev_is_script} 0 && isset ${${prev_menu}/prev} && goto ${${prev_menu}/prev} || :prev_test2 # If prev_is_script is set, continue to prev_test3. Otherwise, set to true (default for scripts) and # go to c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt (otherwise continue to prev_test3). # This is in case prev_test1 fails but should have succeeded. iseq ${do_debug} 1 && prompt (PREVIOUS: prev_test2) || isset ${prev_is_script} && goto prev_test3 || set prev_is_script 1 && isset ${c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt} && goto ${c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt} || :prev_test3 # If prev_is_script is 1 (true), our previous menu is in another script so skip to chainloading that. # Otherwise, use this script's last set target. iseq ${do_debug} 1 && prompt (PREVIOUS: prev_test3) || iseq ${prev_is_script} 1 && goto prev_last || isset ${c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt} && goto ${c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt} || :prev_last # If prev_is_script is true, then we need to go to ${prev_c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8}. The target and exiterr gotos are fallbacks. iseq ${do_debug} 1 && prompt (PREVIOUS: prev_last; chain to ${c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/prev}) && prompt (press any key to continue) || chain ${c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/prev} || goto ${target} || goto exiterr :exiterr echo ERROR ENCOUNTERED iseq ${do_debug} 1 && sleep 2 || exit 1 :exitsuccess exit 0 :exit goto exit_${platform} :exit_efi # We exit 1 instead of just exit (exit with error vs. exit without error) so some broken UEFI will boot the "next" device. exit 0 :exit_pcbios # Boot the "first hard disk". Unpredictable, but so's BIOS lol. sanboot --no-describe --drive 0x80 || # TODO: https://ipxe.org/appnote/work_around_bios_halting_on_ipxe_exit ? exit 1 #exit :main_menu goto ${main_menu} || chain ${entry_script} || goto previous :clear_all # Clear dynamic session-based variables. imgfree || clear do_debug clear bg_set clear prev_is_script clear c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/prev clear c93b8252-ddce-4c81-98c0-7d6b9b0d4fb8/tgt clear main_menu clear ${prev_menu}/prev clear prev_menu clear a4baf53b-79c4-4b62-9fcf-27b97a3eb267/prev clear a4baf53b-79c4-4b62-9fcf-27b97a3eb267/tgt clear target clear main_menu clear bits clear arch0 clear arch0u clear arch1 clear arch1u clear arch2 clear arch2u clear esc clear cls clear 83b6cdf8-d106-4163-ab7c-458a80f9f239/bootopts clear 83b6cdf8-d106-4163-ab7c-458a80f9f239/orig_bootopts clear 3127f249-c8b0-4b8a-8e64-0560b248f374/bootopts clear 3127f249-c8b0-4b8a-8e64-0560b248f374/orig_bootopts clear 516ff011-422a-45e2-8d71-5a4fbeabbbfa/bootopts clear 516ff011-422a-45e2-8d71-5a4fbeabbbfa/orig_bootopts clear 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/bootopts clear 99bee1a3-af26-4fa4-8aa4-4e2e9f53b41b/orig_bootopts clear ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/bootopts clear ee4a6e86-4d7b-4f5b-be35-a59bb696e2b6/orig_bootopts clear a6668c83-79a7-4c5e-a683-613909859e36/bootopts clear a6668c83-79a7-4c5e-a683-613909859e36/orig_bootopts clear af709a65-4ac1-47fd-9310-bdf44ee590d5/bootopts clear af709a65-4ac1-47fd-9310-bdf44ee590d5/orig_bootopts clear 4cb8ce78-65e8-4302-9941-6a9b0e217979/bootopts clear 4cb8ce78-65e8-4302-9941-6a9b0e217979/orig_bootopts clear 2463011c-b24e-4fb1-a17b-9591ef4a302a/bootopts clear 2463011c-b24e-4fb1-a17b-9591ef4a302a/orig_bootopts chain --autofree --replace ${entry_script} || goto exiterr :ipxe_shell echo ${cls} echo This is the NetFire NetBoot shell. echo Use the 'help' command for a list of possible commands. echo Exit back to the menu by executing the command 'exit'. shell || goto exiterr goto previous ###################################### # End menu navigation/exit handling. # ######################################