DevHeads.net

Where to define GRUB_DEFAULT

Hi,

where do I define GRUB_DEFAULT? /etc/default/grub sounds like "this is
the defaults, change it somewhere else". I read somewhere about
/etc/defaults/grub.d/ which does not exist. /etc/grub.d/ esists but
seems to be something else.

So where would I specify e.g. GRUB_DEFAULT?

Thank you!

Comments

Re: Where to define GRUB_DEFAULT

By Tom H at 02/10/2019 - 12:26

On Fri, Feb 8, 2019 at 12:13 PM Helmut Schneider < ... at gmx dot de> wrote:
There's no "/etc/defaults/" in Ubuntu; or Linux in general.
"GRUB_DEFAULT" is set in "/etc/default/grub". Or, if you don't want to
have to deal with the fact that it's a conffile, you can create
"/etc/default/grub.d/" and override any variable in
"/etc/default/grub" (or set a "grub-mkconfig" variable) by setting it
in "/etc/default/grub.d/*.cfg".

Re: Where to define GRUB_DEFAULT

By Colin Law at 02/08/2019 - 07:22

On Fri, 8 Feb 2019 at 11:13, Helmut Schneider < ... at gmx dot de> wrote:
You do it in /etc/default/grub. Then when you have saved it run sudo
update-grub. In the comments at the top it should say that.

Colin