Thanks for answering that,
@rado84 , and for providing that content.
The content is somewhat as I expected (been some years since I installed under MBR conditions) and accounts for why some of the alternatives provided by others are preferred options over the thrust of you are advocating.
I won't get ahead of myself, so I'll suggest the following first:
1. You might consider editing your OP to include that you are using MBR, not UEFI.
2. You have a 30_uefi-firmware script in your /etc/grub.d/ folder because Arch installed it. The relevant past of that file that impacts on your circumstances is
Code:
LABEL="UEFI Firmware Settings"
gettext_printf "Adding boot menu entry for UEFI Firmware Settings ...\n" >&2
cat << EOF
if [ "\$grub_platform" = "efi" ]; then
fwsetup --is-supported
if [ "\$?" = 0 ]; then
menuentry '$LABEL' \$menuentry_id_option 'uefi-firmware' {
fwsetup
}
Your platform is MBR, so
fwsetup --is-supported does not apply. If it did, you would have on your Grub Menu an entry such as I show here
This option that is available to many, many distros does not alter the fact that a short timeout exists when you boot or reboot your computer, and the logo appears, and you have only a couple of seconds to decide whether to tap the (in my case) F12 key for a short boot menu, or the F2 key to enter my BIOS/UEFI environment, but it
does give you the opportunity to choose it from the Grub Menu. Most Debian-based (includes Ubuntu and Mint) distros allow for 10 seconds for that. I note that yours is set to 2 seconds, and some others use seconds. I always change mine, if needed, to 10 seconds
3. In my environment, there are at least two (2) references of relevance to fwsetup, being at
Code:
/boot/grub/x86_64-efi/efifwsetup.mod
# and
/usr/lib/grub/x86_64-efi/efifwsetup.mod
I don't know if you have something similar, but my Manjaros do - might be worth looking into?
Aside from the above - I DO like the Restart and Shutdown options you provide, thanks.
I am also glad that you have your own solution to not having to use other than grub.cfg to effect and tweak changes you have made since 2017, but please do not let newbies think that they should ignore its initial lines
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
That is there for a valid reason.
Also the suggestion that /etc/grub.d/40_custom is the recommended venue for adding your Restart and Shutdown options, is, IMO, valid.
Thanks in hope that you find my above more helpful than not, and please do not scoff at others for their input.
TIA
Chris Turner
wizardfromoz