[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grub2 : PXE : grub.cfg : setting "default" boot option to hotkey def

From: Andrei Borzenkov
Subject: Re: Grub2 : PXE : grub.cfg : setting "default" boot option to hotkey definition
Date: Thu, 30 Oct 2014 06:46:03 +0300

В Wed, 29 Oct 2014 14:35:35 -0600
Joseph Kelly <address@hidden> пишет:

> *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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]