You are not logged in.

#1 2023-08-04 18:14:12

jcarrete
Member
Registered: 2020-03-09
Posts: 12

[SOLVED] /efi directory created and mounted automatically

Every time I reboot my computer, systemd appears to be creating /efi and auto-mounting my ESP. After reading https://bbs.archlinux.org/viewtopic.php?id=271857 and https://wiki.archlinux.org/title/System … tomounting, I have stopped the efi.mount and efi.automount units and deleted /efi (which I don't recall ever creating) and I have set the "do not automount" attribute on my ESP but when I reboot, the directory appears again and gets mounted. I do not want this behavior because I already mount my ESP on /boot in my /etc/fstab. Any ideas how to get systemd to stop auto-creating and mounting to /efi?

I've also tried disabling the efi.mount and efi.automount units but I'm unable to and receive the following error:

# systemctl disable efi.automount
The unit files have no installation config (WantedBy=, RequiredBy=, UpheldBy=,
Also=, or Alias= settings in the [Install] section, and DefaultInstance= for
template units). This means they are not meant to be enabled or disabled using systemctl.

Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
instance name specified.

Last edited by jcarrete (2023-08-04 19:10:11)

Offline

#2 2023-08-04 18:53:45

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] /efi directory created and mounted automatically

Offline

#3 2023-08-04 18:53:51

3beb6e7c46a615a
Member
Registered: 2021-03-27
Posts: 165

Re: [SOLVED] /efi directory created and mounted automatically

Add "systemd.gpt_auto=no" to the kernel parameters in your bootloader configuration, see https://man.archlinux.org/man/core/syst … rator.8.en

Offline

#4 2023-08-04 19:09:45

jcarrete
Member
Registered: 2020-03-09
Posts: 12

Re: [SOLVED] /efi directory created and mounted automatically

Adding "systemd.gpt_auto=no" appears to work around this issue until that bug is resolved. Thanks all

Offline

Board footer

Powered by FluxBB