System reboots to BIOS due to `/etc/grub.d/30_uefi-firmware`.
Reply #3 –
I don't know about it, can you please explain it or link to a description?
I got the following issue with the update to system/grub version 2:2.06.r322.gd9b4638c5-4:
It comes with a file /etc/grub.d/30_uefi-firmware. This file places into the /boot/grub/grub.cfg the following content:
fwsetup --is-supported
if [ "$grub_platform" = "efi" -a "$?" = 0 ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
fi
Whenever GRUB loads it's configuration file and it executes the fwsetup --is-supported, the system (GPD MicroPC) immediately reboots to the BIOS settings (I found this out by adding an informative echo statement before each line in the grub.cfg followed by a 2 seconds sleep, and then I saw at which point the system justs reboots).
Since the fwsetup --is-supported is executed unconditionally loading GRUB results in booting to the BIOS settings, without the possibility to get to the GRUB menu or command line.
A workaround for me is to comment out this line, but whenever the grub configuration file gets updated by operating system automagic this line is there again.
Since /etc/grub.d/30_uefi-firmware is provided by the Artix grub package, I think it is advisable for the maintainers to change that file.
I have modified the offending entry as follows as a temporary workaround:
### 2022-09-28: GPD MicroPC immediately reboots to EFI BIOS settings when 'fwsetup --is-supported' is executed. So we have commented it out.
# fwsetup --is-supported
# if [ "$grub_platform" = "efi" -a "$?" = 0 ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
# fi