You are not logged in.

#1 2021-12-04 15:44:17

chickenlobster
Member
Registered: 2021-12-04
Posts: 2

[SOLVED] systemd boot mounts to /efi despite specifying ESP path

I ran the following command to install systemd boot. My EFI partition was already mounted at /boot

bootctl install --esp-path=/boot

However, when I then run

bootctl status

it still shows the ESP on /efi

Available Boot Loaders on ESP:
          ESP: /efi (/dev/disk/by-partuuid/9335d423-1338-400b-96c7-dd37cf421baa)

Boot Loaders Listed in EFI Variables:
        Title: Linux Boot Manager
           ID: 0x0000
       Status: active, boot-order
    Partition: /dev/disk/by-partuuid/9335d423-1338-400b-96c7-dd37cf421baa
         File: └─/EFI/systemd/systemd-bootx64.efi

Boot Loader Entries:
        $BOOT: /efi (/dev/disk/by-partuuid/9335d423-1338-400b-96c7-dd37cf421baa)

Furthermore, it looks like my EFI partition is somehow mounted at both /efi and /boot

❯ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0 476.9G  0 disk 
├─nvme0n1p1 259:1    0   1.3G  0 part /efi
│                                     /boot

I tried to unmount /efi and deleting the folder but whenever I try to delete it, it mounts itself again. I tried looking at my fstab but couldn't find anything for /efi

UUID=f9d294ce-44ba-473c-9aa3-b5cf3c0059bc   /                  ext4   rw,relatime   0 1 
UUID=944ea586-4164-49b4-b55c-9897b774fe09   /home              ext4   defaults      0 0 
/swapfile                                   none               swap   defaults      0 0 
UUID=B011-953C  /boot/       vfat    defaults        0       2

Any ideas?

Last edited by chickenlobster (2021-12-05 16:19:12)

Offline

#2 2021-12-04 17:30:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,831

Re: [SOLVED] systemd boot mounts to /efi despite specifying ESP path

systemd-boot doesn't mount anything and has no relation to your running system, this is up to your general configuration check your fstab.

forgot about those see below.

Last edited by V1del (2021-12-04 17:49:17)

Offline

#3 2021-12-04 17:45:29

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 607

Re: [SOLVED] systemd boot mounts to /efi despite specifying ESP path

It's systemd-gpt-auto-generator that mounts it. And the reason it mounts it is because you had created the /efi directory.

You get rid of it, you first need to disable and stop the mount and automount units, only afterwards you'll be able to delete the directory.
IIRC the units should be efi.automount and efi.mount, check by running:

$ systemctl list-units --type=automount

Offline

#4 2021-12-04 19:38:10

chickenlobster
Member
Registered: 2021-12-04
Posts: 2

Re: [SOLVED] systemd boot mounts to /efi despite specifying ESP path

nl6720 wrote:

It's systemd-gpt-auto-generator that mounts it. And the reason it mounts it is because you had created the /efi directory.

You get rid of it, you first need to disable and stop the mount and automount units, only afterwards you'll be able to delete the directory.
IIRC the units should be efi.automount and efi.mount, check by running:

$ systemctl list-units --type=automount

That was exactly it. Thanks so much!

Offline

Board footer

Powered by FluxBB