Anaconda and hiding the grub-menu be default on Workstation installs

Hans de Goede <[email protected]> Fri, 1 Jun 2018 11:05:25 +0200
Newsgroups gmane.linux.redhat.anaconda.devel
Message-ID <[email protected]>
Hi All,

For those of you who still know me from when I worked
on anaconda (about 8 years ago) nice to see you again :)

As you may have seen from the discussion on the fedora-devel
list I'm working on hiding the grub-menu be default on
Workstation installs:

https://fedoraproject.org/wiki/Changes/HiddenGrubMenu

This will require some minimal anaconda changes. The plan
to put most of the logic for this in grub2-mkconfig.

First of all let me see if I understand anaconda's
role in this correctly. I believe that anaconda does 2
things which are relevant here:

1) During install it generates /etc/default/grub
2) After generating that file it calls grub2-mkconfig
    to generate the grub.cfg file.

Right ?


My next question is if anaconda knows about products
(e.g. Fedora Workstation vs Fedora server), I believe
it does, right ?


So assuming I got this all correct, then the change request
which I have for Anaconda for F29 is for it to add:

GRUB_AUTO_HIDE="true"

To the generated /etc/default/grub file for new Workstation
installs (and for Workstation install only).

Please note that the GRUB_AUTO_HIDE name is not set in stone
yet (before someone writes a patch for this right away).


Regards,

Hans