Re: Boot menu always displayed again?

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

 




Dne 09. 09. 21 v 8:25 Petr Pisar napsal(a):
V Wed, Sep 08, 2021 at 05:34:42PM +0200, Vít Ondruch napsal(a):
Dne 08. 09. 21 v 15:23 Petr Pisar napsal(a):
V Wed, Sep 08, 2021 at 09:01:42AM -0400, Simo Sorce napsal(a):
If I try to do this I get an error:
# grub2-editenv - set menu_auto_hide=1
grub2-editenv: error: environment block too small.

What the issue here ?
Perhaps /boot/grub2/grubenv is corrupted and grub2-editenv is not very good at
reporting errors. This happens when the file was accidentally truncated. Does
it have 1024-byte size?

If it does not, back up the file and reinitilize it with
"grub2-editenv - create"

Why it does not contain the `menu_auto_hide=1` by default when running this
command?? :/

Because this how upstream works. From the manual:

COMMANDS
        create
               Create a blank environment block file.


You took the question too literally, while my whine was more figurative.

Initially, I was going to answer this:

IOW I don't think this is good default and even if this might be considered good default for upstream (because from upstream POV, the empty file is sufficient), it is not good default for Fedora IMO. In Fedora, the output of such (or similar) command should already include `menu_auto_hide=1`.

But thinking about this more, I think my biggest pet peeve with this issue is that there is no simple way to reset to Fedora default. Would the system boot without the `/boot/grub2/grubenv` file? I hope so. So can I delete it to fix the issue at hand? I can't. Can I recreate the file? I can't. Can I reinstall some package to fix the issue? I can't. I don't know how else should I figure that I am supposed to put `menu_auto_hide=1` somewhere to get the Fedora experience back?


Vít

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux