πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.user
5 messages
5 total messages Started by Kelly Clowers Tue, 24 Nov 2026 06:00
Help diagnosing efivarsfs not present (newer Sid kernels)
#618
Author: Kelly Clowers
Date: Tue, 24 Nov 2026 06:00
114 lines
7746 bytes
Debian Sid, Asus TUF Gaming B550M-PLUS

I don't know what things to do to get more info. Here is most of what I do know.

Installed Debian with MB in pure UEFI mode from the start.

With kernel 6.12.94+deb13-rt-amd64 the system boots, but there is no efivarfs
With newer Sid kernels 7.x it doesn't finish booting, though I can get rescue shell

I had earlier 6.12 kernels and those had been working fine for months, efivarfs was there and everything was perfect, but I accidentally removed them and can't get them back (I think because Sid and kernel versions just end up gone? I haven't been able to find them in archives anyway).

Without EFI vars systemd-boot works (in that it boots), but not quite right. Apt throws errors due to kernels not being able able to complete setup, but it doesn't stop upgrades, installs, etc from working.

Modprobe works for efivarfs, but I never get a mounted fs and `efivar` doesn't work:

aadmin:~$ sudo modprobe -r -v efivarfs
rmmod efivarfs
aadmin:~$ 
aadmin:~$ sudo modprobe -v efivarfs
insmod /lib/modules/6.12.94+deb13-rt-amd64/kernel/fs/efivarfs/efivarfs.ko.xz 
aadmin:~$ 
aadmin:~$ findmnt | grep efi
aadmin:~$ 
aadmin:~$ sudo efivar -l
efivar: error listing variables: Function not implemented


aadmin:~$ sudo mount -t efivarfs efivarfs /sys/firmware/efi/efivars
mount: /sys/firmware/efi/efivars: fsopen() failed: Operation not supported.
       dmesg(1) may have more information after failed mount system call.
aadmin:~$ 
aadmin:~$ sudo mount -t efivarfs none /sys/firmware/efi/efivars
mount: /sys/firmware/efi/efivars: fsopen() failed: Operation not supported.
       dmesg(1) may have more information after failed mount system call.
aadmin:~$ 


Using `sudo bootctl install` does the directory stuff, but then ends with:
Failed to write 'LoaderSystemToken' EFI variable: No such file or directory

Bootctl status gives (in part):

aadmin:~$ sudo bootctl status
System:
      Firmware: n/a (n/a)
 Firmware Arch: x64
   Secure Boot: disabled (unsupported)
  TPM2 Support: yes
  Measured UKI: no
   Measured OS: no
  Boot into FW: not supported
 Platform Lang: n/a

Random Seed:
 System Token: not set
       Exists: yes

Available Boot Loaders on ESP:
          ESP: /boot (/dev/disk/by-partuuid/504d7869-5887-408c-bd35-4aae21ba2202)
         File: β”œβ”€/boot//EFI/systemd/systemd-boot-fallbackx64.efi (systemd-boot 262.1-1)
               β”œβ”€/boot//EFI/systemd/systemd-bootx64.efi (systemd-boot 262.2-1)
               β”œβ”€/boot//EFI/BOOT/BOOTX64.efi (systemd-boot 262.2-1)
               └─/boot//EFI/BOOT/fbx64.efi

No boot loaders listed in EFI Variables.
...


sudo fwupdmgr get-bios-settings
WARNING: UEFI capsule updates not available or enabled in firmware setup

Notable entries from `sudo fwupdmgr get-plugins`: 
bios:
  Flags:                β€’ UEFI capsule updates not available or enabled in firmware setup
                        β€’ Ready

uefi_sbat:
  Flags:                β€’ Disabled
                        β€’ Required hardware was not found

uefi_mok:
  Flags:                β€’ Disabled
                        β€’ Required hardware was not found

uefi_capsule:
  Flags:                β€’ Disabled
                        β€’ Will measure elements of system integrity around an update


Thoughts about what to try appreciated. 

-- 
  Kelly Clowers
  listserv.debian@kelly.clowers.org
Re: Help diagnosing efivarsfs not present (newer Sid kernels)
#620
Author: David Wright
Date: Tue, 24 Nov 2026 15:50
62 lines
6430 bytes
On Mon 23 Nov 2026 at 21:53:48 (-0800), Kelly Clowers wrote:
> aadmin:~$ findmnt | grep efi
> aadmin:~$ 

  $ findmnt | grep -A1 efi
  β”‚ β”œβ”€/sys/firmware/efi/efivars                 efivarfs                                              efivarfs    rw,nosuid,nodev,noexec,relatime
  β”‚ β”œβ”€/sys/fs/bpf                               bpf                                                   bpf         rw,nosuid,nodev,noexec,relatime,mode=700
  --
  β”œβ”€/boot/efi                                   /dev/nvme0n1p1                                        vfat        rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro
  └─/home                                       /dev/mapper/luks-… ext4        rw,nodev,relatime,errors=remount-ro
  $ 

> Bootctl status gives (in part):
> 
> aadmin:~$ sudo bootctl status
> [ … ]
> Available Boot Loaders on ESP:
>           ESP: /boot (/dev/disk/by-partuuid/504d7869-5887-408c-bd35-4aae21ba2202)
>          File: β”œβ”€/boot//EFI/systemd/systemd-boot-fallbackx64.efi (systemd-boot 262.1-1)
>                β”œβ”€/boot//EFI/systemd/systemd-bootx64.efi (systemd-boot 262.2-1)
>                β”œβ”€/boot//EFI/BOOT/BOOTX64.efi (systemd-boot 262.2-1)
>                └─/boot//EFI/BOOT/fbx64.efi

I don't use systemd-boot, so no bootctl. Instead:

  # ls -lR /boot/efi/
  /boot/efi/:
  total 4
  drwx------ 4 root root 4096 Jul 23 18:17 EFI
 
  /boot/efi/EFI:
  total 8
  drwx------ 2 root root 4096 Jul 23 18:17 BOOT
  drwx------ 2 root root 4096 Jul 23 18:17 debian
 
  /boot/efi/EFI/BOOT:
  total 4612
  -rwx------ 1 root root 1036152 Nov 22 08:00 BOOTX64.EFI
  -rwx------ 1 root root  118832 Nov 22 08:00 fbx64.efi
  -rwx------ 1 root root 2684352 Nov 22 08:00 grubx64.efi
  -rwx------ 1 root root  873904 Nov 22 08:00 mmx64.efi
 
  /boot/efi/EFI/debian:
  total 4620
  -rwx------ 1 root root     108 Nov 22 08:00 BOOTX64.CSV
  -rwx------ 1 root root  118832 Nov 22 08:00 fbx64.efi
  -rwx------ 1 root root     117 Nov 22 08:00 grub.cfg
  -rwx------ 1 root root 2684352 Nov 22 08:00 grubx64.efi
  -rwx------ 1 root root  873904 Nov 22 08:00 mmx64.efi
  -rwx------ 1 root root 1036152 Nov 22 08:00 shimx64.efi
  # 

So I'd guess the boot loader can find your ESP, and hence boot,
but you're not mounting it correctly, so the OS can't find it.

$ grep -e mntpt -e efi /etc/fstab 
# <filesys>      <mntpt>        <type>      <options>     <dump> <pass>
UUID=E721-9F8F   /boot/efi      vfat        umask=0077              0 2
$ 

Cheers,
David.
Re: Help diagnosing efivarsfs not present (newer Sid kernels)
#622
Author: David Wright
Date: Wed, 25 Nov 2026 04:00
55 lines
5819 bytes
On Tue 24 Nov 2026 at 15:16:26 (-0800), Kelly Clowers wrote:
> On Tue, Nov 24, 2026, at 07:45, David Wright wrote:
> > On Mon 23 Nov 2026 at 21:53:48 (-0800), Kelly Clowers wrote:
[ … ]
> > So I'd guess the boot loader can find your ESP, and hence boot,
> > but you're not mounting it correctly, so the OS can't find it.
> >
> > $ grep -e mntpt -e efi /etc/fstab 
> > # <filesys>      <mntpt>        <type>      <options>     <dump> <pass>
> > UUID=E721-9F8F   /boot/efi      vfat        umask=0077              0 2
> > $ 
> 
> The EFI System Partition (ESP) is fine, it is mounted and accessible, the only issue is the efivarFS virtual filesystem, which simple isn't there and won't mount, which renders all userspace access to EFI vars impossible 
> 
> >From `parted`
> Number  Start   End     Size    File system     Name  Flags
>  1      1049kB  1181MB  1180MB  fat32           ESP   boot, legacy_boot, esp
> [...]

So the ESP exists, and will presumably be found by the firmware.

> aadmin:~$ findmnt --types vfat
> TARGET SOURCE         FSTYPE OPTIONS
> /boot  /dev/nvme0n1p1 vfat   rw,relatime,[...]

You shouldn't mount the ESP on /boot, but /boot/efi, as seen in my
/etc/fstab line above.

> aadmin:~$ sudo ls /boot/EFI
> BOOT  debian  Linux  systemd

That looks reasonable, except it should be a listing of /boot/efi/EFI,
not /boot/EFI.

While the system is running, create a directory called /boot/efi.
Edit your /etc/fstab and change the line that says:

  /dev/nvme0n1p1  /boot vfat   rw,relatime,[...]

to:

  /dev/nvme0n1p1  /boot/efi vfat   rw,relatime,[...]

You might want to change /dev/nvme0n1p1 to the UUID of the filesystem,
which is considered generally more reliable than using kernel names.
You can see that in my own /etc/fstab, which corresponds to:

  $ ls -l /dev/disk/by-uuid/E721-9F8F 
  lrwxrwxrwx 1 root root 15 Nov 24 07:53 /dev/disk/by-uuid/E721-9F8F -> ../../nvme0n1p1
  $ 

Then reboot, and see what comes up.

Cheers,
David.
Re: Help diagnosing efivarsfs not present (newer Sid kernels)
#623
Author: Stefan Monnier
Date: Wed, 25 Nov 2026 04:10
12 lines
2301 bytes
Kelly Clowers [2026-11-24 15:16:26] wrote:
> The EFI System Partition (ESP) is fine, it is mounted and accessible,
> the only issue is the efivarFS virtual filesystem, which simple isn't
> there and won't mount, which renders all userspace access to EFI vars
> impossible 

My crystal ball suggests that maybe for some reason your machine fails
to boot your system using UEFI and instead boots it with the
"legacy/bios/mbr" boot system instead?


=== Stefan
Re: Help diagnosing efivarsfs not present (newer Sid kernels)
#624
Author: didier gaumet
Date: Wed, 25 Nov 2026 09:30
33 lines
3371 bytes
Le 24/11/2026 Γ  06:53, Kelly Clowers a Γ©critΒ :

> Debian Sid, Asus TUF Gaming B550M-PLUS
[...]> With kernel 6.12.94+deb13-rt-amd64 the system boots, but there is 
no efivarfs
> With newer Sid kernels 7.x it doesn't finish booting, though I can get rescue shell
[...]
> Modprobe works for efivarfs, but I never get a mounted fs and `efivar` doesn't work:[...]

Hello,

The kernel documentation about efivarfs is here:
https://docs.kernel.org/filesystems/efivarfs.html

You use a real-time amd64 kernel (-rt-amd64 suffix for of your kernel 
package name).
According to the "Requirements for UEFI variable support"Β section of the 
UEFI page of the Archlinux wiki 
(https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface#Requirements_for_UEFI_variable_support):
"[...]
realtime kernel, add efi=runtime to the kernel parameters and reboot 
(efivarfs functionality is disabled by default on those kernels).".

So just try to add efi=runtime to the kernel parameters in 
/etc/default/grub and see if it works. If this feature is disabled by 
default on real-time kernels, there is certainly a good reason, though.

As a side note, just in case, I do not play games and I do not know how 
games are coded (and therefore if real-time is really needed), but be 
aware that a real-time kernel is not always quicker than an ordinary 
kernel, the difference being that with a real-time kernel execution 
times are somewhat predictable:
https://wiki.archlinux.org/title/Realtime_kernel#What_is_realtime?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads