245 posts
Location
Computer, Germany
Posted 26 September 2016 - 08:16 PM
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.
Screenies (there isn't really much):Spoiler
http://imgur.com/u5PvwyW
http://imgur.com/a/bmgNG Download (and example /grubcfg):GRUB:
pastebin get vfZ79n1U /grub
Example /grubcfg:
pastebin get uGALy0pc /grubcfg
275 posts
Location
Turkey
Posted 26 September 2016 - 08:32 PM
looks useful, maybe i'll add support to it in AdmiOS.
But there are some other things to do.
245 posts
Location
Computer, Germany
Posted 26 September 2016 - 08:47 PM
looks useful, maybe i'll add support to it in AdmiOS.
But there are some other things to do.
Welcome on board, bro :)/>
Still got an OS to completely rewrite :P/>
149 posts
Location
The dark depths of the web
Posted 26 September 2016 - 08:56 PM
I see Lyqyd OS in the background there… ;)/>
275 posts
Location
Turkey
Posted 26 September 2016 - 09:06 PM
Just discovered this. You can use ../file to execute a file outsite of the boot directory.
245 posts
Location
Computer, Germany
Posted 26 September 2016 - 09:22 PM
Ah ty Admi, tho this isn't exactly a problem because if you want you can change the directory in the code.. I'll fix it tho :)/>
Ye I had LyqydOS on for testing purposes but It gives me cancer as it crashes everytime a program finishes and I leave the window open for too long :/
245 posts
Location
Computer, Germany
Posted 26 September 2016 - 09:28 PM
Just discovered this. You can use ../file to execute a file outsite of the boot directory.
OK it should be fixed (did this on my phone) could you try it out and if other "forbidden tricks" work, could you post them here?
8543 posts
Posted 26 September 2016 - 09:30 PM
Ye I had LyqydOS on for testing purposes but It gives me cancer as it crashes everytime a program finishes and I leave the window open for too long :/
Have you considered posting a bug report, with reproduction instructions? Can't exactly fix bugs I don't know about. :P/>
245 posts
Location
Computer, Germany
Posted 26 September 2016 - 09:31 PM
Ye I had LyqydOS on for testing purposes but It gives me cancer as it crashes everytime a program finishes and I leave the window open for too long :/
Have you considered posting a bug report, with reproduction instructions? Can't exactly fix bugs I don't know about. :P/>/>
Sure I can do that (ones I have access on my computer again) but where? Like, on GitHub?
8543 posts
Posted 26 September 2016 - 09:32 PM
GitHub is fine, or just a post on the LyqydOS topic over in the OS section. I pay attention to both.
245 posts
Location
Computer, Germany
Posted 07 October 2016 - 11:33 PM
Small update:
- Fixed a "bug" where GRUB failes to boot an image if you have no flags