acidanthera / bugtracker

Acidanthera Bugtracker
374 stars 42 forks source link

[Feature Request] OpenLinuxBoot add the OS recovery mode boot entry #2382

Open MatteoBax opened 4 months ago

MatteoBax commented 4 months ago

I would like to request adding recovery mode boot entry of Linux kernel based OS as I would have to boot GRUB to boot it.

mikebeaton commented 4 months ago

For Boot Loader Specification compliant distros (in the real world, this typically currently means distros which use systemd boot) this already works.

For non BLSpec compliant (i.e., typically, grub based) distros, you are correct that this does not work.

Other than BLSpec, there is no standard for discovering boot entries and associated kernel parameters. However there is enough of a de facto standard for how things are laid out that we were able to write OpenLinuxBoot, which works reliably on as many distros as it does. (See OpenLinuxBoot's documentation and open-source code.)

However recovery mode is (often) just a difference in kernel parameters, and we are not aware of - and were not able to find - any way to obtain the recovery mode kernel parameters, except for detailed parsing of grub.cfg.

Therefore, at the moment, you are correct that you have to boot into grub to get recovery mode, in non-BLSpec compliant distros. Any updates to this would unfortunately be low priority, I am afraid.