"Bootloader not detected" error, complains about unrecognized "LOADER-TYPE="grub2-efi""

I just did a zypper dup and noticed this error a lot, and if it’s a problem with boot, then I’m definitely not rebooting yet… Doubly so since one of the last lines after the upgrade said (and you’ll see the repeated bootloader error message in here too):

%transfiletriggerin(sdbootutil-1+git20241008.3df16d2-1.1.x86_64) script output:
Error: Bootloader not detected. /etc/sysconfig/bootloader has LOADER_TYPE="grub2-efi", but only "systemd-boot" or "grub2-bls" are recognized.
warning: %transfiletriggerin(sdbootutil-1+git20241008.3df16d2-1.1.x86_64) scriptlet failed, exit status 1

This is a dual-boot system with Windows on its on separate drive entirely (not sure if relevant here).
I have a Nvidia GPU and install drivers through repo (not sure if relevant here).
The partitioning is from years back with a 500MB /boot partition. I happened to notice in %posttrans(shim-15.8-3.1.x86_64) script output: something about not enough space on /boot, so I made some space and reinstalled the latest kernel. Then I did shim-install and grub2-mkconfig -o /boot/grub2/grub.cfg without errors, and reinstalled the kernel again, but the “Bootloader not detected” error persists.

I was almost tempted to just edit /etc/sysconfig/bootloader to have “systemd-boot” instead and just try, but boot problems are a pain, so I want to be sure things are working before rebooting.

1 Like

If you do not use systemd-boot, why do you have it installed?


That’s all I got from that command it seems.

As far as I know, it’s nothing I’ve intentionally installed.

1 Like

It is sdbootutil packaging bug, and if you do not use systemd-boot you can just remove (and may be lock - I have not checked the current dependencies) sdbootutil.

1 Like

Thanks! Simply removed it, didn’t see any errors, and have rebooted without issues.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.