On Tue, Nov 24, 2026, at 07:45, David Wright wrote:
> 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.

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
[...]

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

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

aadmin:~$ ll /dev/disk/by-partuuid/504d7869-5887-408c-bd35-4aae21ba2202 
lrwxrwxrwx 1 root root 15 2026-11-24 13:28 
/dev/disk/by-partuuid/504d7869-5887-408c-bd35-4aae21ba2202 -> ../../nvme0n1p1

the 504... partUUID shows up in bootctl 
ESP: /boot (/dev/disk/by-partuuid/504d7869-5887-408c-bd35-4aae21ba2202)

I just don't know how to further diagnose the failure to mount efivarfs, 
especially since the kernel module loads. 

This is stock Debian kernel, and I also checked the kernel .config options 
related to EFI, everything is hard enabled or a module aside from a handful 
that seem unrelated (test/debug or special security things):

# CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE is not set                             
                                                            
# CONFIG_EFI_TEST is not set                                                    
                                                            
# CONFIG_EFI_RCI2_TABLE is not set                                              
                                                            
# CONFIG_EFI_DISABLE_PCI_DMA is not set                                         
                                                            
# CONFIG_EFI_COCO_SECRET is not set                                             
                                                            
# CONFIG_EFI_SECRET is not set                                                  
                                                            
# CONFIG_EFI_PGT_DUMP is not set   

`sudo strace evivar -l` ends with:

statfs("/sys/firmware/efi/efivars/", {f_type=SYSFS_MAGIC, f_bsize=4096, 
f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, 
f_fsid={val=[0xb7b327fa, 0x1554b621]}, f_namelen=255, f_frsize=4096, 
f_flags=ST_VALID|ST_NOSUID|ST_NODEV|ST_NOEXEC|ST_RELATIME}) = 0
openat(AT_FDCWD, "/sys/firmware/efi/vars/", 
O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or 
directory)
write(2, "efivar: error listing variables:"..., 58efivar: error listing 
variables: Function not implemented
) = 58
close(3)                                = 0
close(2)                                = 0
exit_group(1)                           = ?
+++ exited with 1 +++

as expected since no mount

I don't know that strace of the mount command would be useful? It should show 
the system calls mount makes, but IDK if I need to see more of what is going on 
inside the kernel?

Yeah I just tried:
`sudo strace mount -t efivarfs efivarfs /sys/firmware/efi/efivars`

and only really relevant line seems like:
`fsopen("efivarfs", FSOPEN_CLOEXEC)      = -1 EOPNOTSUPP (Operation not 
supported)`
 
After that it just tried looking for localization options 
(/usr/share/locale/en_US.UTF-8/... found none) and then did the actual print to 
console from my first message:

mount: /sys/firmware/efi/efivars: fsopen() failed: Operation not supported.
       dmesg(1) may have more information after failed mount system call.

I have never done any kind of kernel tracing or debugging (kdb), which I guess 
is what I need? But not sure.

Reply via email to