В Wed, 29 Oct 2014 14:35:35 -0600
Joseph Kelly <[email protected]> пишет:
> *Set up*
> I have grub2 served up from a linux PXE server.
>
> *Question*
> Is it possible to set the default option to a defined hotkey?
>
> *Use case*
> I have a menu set up with 20+ boot options and I want to move things around
> for display purposes and/or add/remove an entry. At the moment, it is my
> understanding that I would need to go back through the menu options and
> re-number them to then get the number to set as the default.
>
grub supports --id option in menuentry and submenu commands that can be
used to give stable handles to your entries.
menuentry ... --id any-string-unique-in-grub-cfg {
}
Then set default to menuentry id, which is recommended anyway.
> For example, in the cfg I would like to be able to write:
> set default="g"
>
> Would it help to put the default setting at the end of the file once the it
> has been read in?
>
>
>
>
>
> Thank you,
>
> Joseph Kelly
_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub