A GRUB-like bootmenu.
Soo while rewriting cLinux (very) slowly, I thought about adding the ability to boot own OSes and/or CraftOS, just to expand the freedom, you know?
Basically this reads a list of names, saved in /grubcfg, and displays them with (additional) arguments displayed at the bottom.
(YES, you can let CraftOS boot, just let an executeable refer to /rom/programs/shell )
You can press E on the selected executeable to write additional arguments to boot with.
You can hardcode those arguments (they will still be editable in grub, but this is so that they may be saved permanently) and even write the number for the default-selected file.
- The executeables have to be saved in /boot/ (ok you can edit that a bit at the bottom of the code (in os.run(blah) )
- There cannot be more than 11 entries, otherwise GRUB will error out (isn't that enough?)
- There HAS to be a /grubcfg , otherwise GRUB will error out (by erroring out, I don't mean crashing but it refuses to start, that's intended)
- An example of a /bootcfg is posted here too.
Download (and example /grubcfg):
GRUB:
pastebin get vfZ79n1U /grub
Example /grubcfg:
pastebin get uGALy0pc /grubcfg