How do I know which grub version is used and how to configure it?

Bo Berglund bo.berglund at gmail.com
Tue Dec 17 16:00:28 UTC 2024


On Tue, 17 Dec 2024 16:46:16 +0100, Bo Berglund <bo.berglund at gmail.com> wrote:

>On Tue, 17 Dec 2024 16:25:44 +0100, Ralf Mardorf via ubuntu-users
><ubuntu-users at lists.ubuntu.com> wrote:
>
>>On Tue, 2024-12-17 at 15:03 +0100, Bo Berglund wrote:
>>> > In the BIOS/UEFI menu you can see the order of the boot devices.
>>> > There you can see which GRUB your BIOS/UEFI is targeting.
>>> 
>>> Where do I find the BIOS/UEFI file?
>>> Seems not to exist here....
>>
>>Hi,
>>
>>there is no file on your Linux. It's provided by the firmware.
>>
>>https://www.youtube.com/watch?v=wLTusKkElcg
>>
>>Btw. instead of pushing the del key, pushing the del key, pushing the
>>del key, pushing the del key, I'm using a GRUB menu entry to open the
>>UEFI settings dialog.
>>
>>$ grep -i firmware -A2 /boot/grub/grub.cfg 
>>menuentry "    UEFI Firmware Settings" --id 'uefi-firmware' {
>>        fwsetup
>>}
>>
>
>Will test that  once I get to a stage where I can actually control the content
>of the boot menu. Seems like the now disappeared Ubuntu Desktop is owning the
>boot menu. :(
>
>I can only reboot the server between 9 and 11 AM CET when it is not running any
>jobs.
>

But look what I found when reading through the grub.cfg file:

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
        fwsetup --is-supported
        if [ "$?" = 0 ]; then
                menuentry 'UEFI Firmware Settings' $menuentry_id_option
'uefi-firmware' {
                        fwsetup
                }
        fi
fi
### END /etc/grub.d/30_uefi-firmware ###

So you mean that This places a line on the boot menu saying:

'UEFI Firmware Settings'

Is that on advanced or the main menu?

But the environment var $grub_platform seems not to be set in my Ubuntu....


-- 
Bo Berglund
Developer in Sweden





More information about the ubuntu-users mailing list