#1089080 efibootmgr can't use under RT kernel

Package:
efibootmgr
Source:
efibootmgr
Description:
Interact with the EFI Boot Manager
Submitter:
xiao sheng wen
Date:
2024-12-10 09:03:03 UTC
Severity:
normal
#1089080#5
Date:
2024-12-05 03:59:06 UTC
From:
To:
Hi,

 When I run efibootmgr on RT kernel, I meet the following error:

EFI variables are not supported on this system.

# uname -a
Linux atzlinux-ce 6.1.0-28-rt-amd64 #1 SMP PREEMPT_RT Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux

The /sys/firmware/efi/efivars/ is empty:

root@atzlinux-ce:~# ls -l /sys/firmware/efi/efivars/
total 0

# lsmod|grep efi
efi_pstore             16384  0

When I run modprobe efivarfs:

# modprobe efivarfs
modprobe: ERROR: could not insert 'efivarfs': No such device
-------------------------------------------------------

But in the same notebook, when I boot use normal kernel:

# uname -a
Linux atzlinux-e8 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux

efibootmgr work no problem.

The kernel module efivarfs can load:

root@atzlinux-e8:~# lsmod|grep efi
efi_pstore             16384  0
efivarfs               24576  1

root@atzlinux-e8:~# dmesg|grep efivars
[    0.250220] Registered efivars operations

I don't find this line in RT kernel boot log.

Is the efivars module support RT kernel?

#1089080#14
Date:
2024-12-09 07:33:46 UTC
From:
To:
Hi,

	From kernel bug report:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021245#10

I know that we can adding "efi=runtime" to the kernel command line to
enable efibootmgr work on *-rt* kernel.

This is not a bug of efibootmgr, but can we add some Note in efibootmgr
 package Description ?

For example:

Note: If you are using *-rt* kernel, you should adding "efi=runtime" to
the kernel command line to enable efibootmgr work.


Thanks!