Open MatteoBax opened 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.
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.