You are not logged in.
After the latest update, bootctl started complaining about /efi directory being world readable. to fix this, i updated the /boot partition's fstab entry fmask to 0137 and dmask to 0027.
After a reboot, my root partition now has a seperate /efi directory which contains the same files as /boot directory
total 40K
drwxr-xr-x 1 root root 138 Aug 2 19:45 .
drwxr-xr-x 1 root root 138 Aug 2 19:45 ..
lrwxrwxrwx 1 root root 7 Feb 1 2023 bin -> usr/bin
drwxr-xr-x 4 root root 4.0K Jan 1 1970 boot
drwxr-xr-x 20 root root 4.1K Aug 3 22:29 dev
drwxr-xr-x 2 root root 0 Aug 3 22:29 efi
drwxr-xr-x 1 root root 2.7K Aug 3 23:21 etc
drwxr-xr-x 1 root root 14 Jul 12 2022 home
lrwxrwxrwx 1 root root 7 Feb 1 2023 lib -> usr/lib
lrwxrwxrwx 1 root root 7 Feb 1 2023 lib64 -> usr/lib
drwxr-xr-x 1 root root 14 Jun 16 21:27 media
drwxr-xr-x 1 root root 0 Dec 31 2022 mnt
drwxr-xr-x 1 root root 44 Jul 18 20:35 opt
dr-xr-xr-x 352 root root 0 Aug 3 22:29 proc
drwxr-x--- 1 root root 230 May 20 16:50 root
drwxr-xr-x 19 root root 500 Aug 3 23:00 run
lrwxrwxrwx 1 root root 7 Feb 1 2023 sbin -> usr/bin
drwxr-xr-x 1 root root 14 Jul 12 2022 srv
dr-xr-xr-x 13 root root 0 Aug 3 22:29 sys
drwxrwxrwt 9 root root 200 Aug 3 23:34 tmp
drwxr-xr-x 1 root root 80 Aug 3 21:35 usr
drwxr-xr-x 1 root root 116 Aug 3 21:57 var
I also checked lsblk, which outputted:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 300M 0 part /efi
│ /boot
├─nvme0n1p2 259:2 0 10G 0 part [SWAP]
└─nvme0n1p3 259:3 0 228.2G 0 part /home
/
Here is my fstab entries:
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/nvme0n1p3
UUID=ed8546ab-0265-466c-9286-8d222f156dc4 / btrfs rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@ 0 0
# /dev/nvme0n1p1
UUID=9E5B-5175 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/nvme0n1p3
UUID=ed8546ab-0265-466c-9286-8d222f156dc4 /home btrfs rw,noatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@home 0 0
# /dev/nvme0n1p2
UUID=3dd8df47-4d3f-4d3c-b59d-225cc5ebab6e none swap defaults 0 0
This issue persists even after reverting the fstab options.
I tried unmounting /efi but right after i check the contents of /efi after unmounting, it gets mounted back.
Why is this happening? i checked dmesg to try and find the culprit, but there is nothing stating that the directory is mounted.
How should i fix it?
Last edited by PROBUBBLE01 (2023-08-04 07:25:18)
Offline
Welcome to the wonders of systemd...
It's already been solved in the forums.
tl;dr
stop automount unit and delete /efi
Offline
Welcome to the wonders of systemd...
It's already been solved in the forums.tl;dr
stop automount unit and delete /efi
Hey, thanks for replying. I cannot seem to disable those units. systemd complains those units does not have an installation config. also, logs of efi.automount says thats bootctl is triggering it. any ideas?
Offline
So this is a bug in systemd. And it has been reported on github.
https://github.com/systemd/systemd/issues/28585
So I assume it's not user error. Closing the thread.
Offline