On 06/01/2018 02:27 AM, Gerd Hoffmann wrote:
>   Hi,
> 
>> Side note, android's 'reboot' cmd can take an argument, like 'reboot
>> fastboot' or 'reboot recovery'.. that might be one of the few features
>> from android worth copying ;-)
> 
> I'm still missing something simliar to "lilo -R <cmdline>" in the world
> of modern boot loaders.  This used to set the lilo command line for the
> next boot.  lilo command line is boot entry name plus additional kernel
> parameters.  So you say ...
> 
>   "lilo -R default single && reboot"
> 
> ... for a single user boot.  Or ...
> 
>   "lilo -R testkernel && reboot"
> 
> ... to boot a different kernel once.
> 
> Seems at least for the second use case some out-of-tree grub2 patches
> are floating around, adding a --once switch to grub-set-default.  Some
> linux systems have it, some don't .

grub2-reboot 1

will set it to boot entry 1 (it starts counting from 0) the next time
you boot only. It doesn't help passing args, but it does let you boot a
particular kernel entry.

kevin




Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/QI224SNSWG7QIMFSWDZO4BP4GDUKFWS3/

Reply via email to