Discussion:
Anaconda and hiding the grub-menu be default on Workstation installs
Hans de Goede
2018-06-01 09:05:25 UTC
Permalink
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
Martin Kolman
2018-06-01 11:42:57 UTC
Permalink
On Fri, 2018-06-01 at 11:05 +0200, Hans de Goede wrote:

<snip>
Post by Hans de Goede
My next question is if anaconda knows about products
(e.g. Fedora Workstation vs Fedora server), I believe
it does, right ?
<snip>
Yep & we use install class mechanism[0] to handle the variant specific differences,
such as Server using XFS by default vs Workstation using EXT4.

So this feature could be added as a new install class property,
which is only enabled for the Workstation install class.

[0] https://github.com/rhinstaller/anaconda/tree/master/pyanaconda/installclasses
Loading...