You are not logged in.

#1 2021-12-05 00:02:44

dext
Member
From: Poland, Kraków
Registered: 2008-02-01
Posts: 124

Systemd hangs trying to mount /home [solved]

I have a /home partition with LUKS and I don't want to mount it on boot.
I don't have it in fstab, and my crypttab is empty.

Still, systemd tries to force the mount. I have found, by some magic an enabled "systemd-cryptsetup@home" service. I've masked it. But now the boot process hangs on: "A start job is running for /dev/mapper/home". Someone knows where Systemd is taking this from?

Last edited by dext (2021-12-05 13:37:38)

Offline

#2 2021-12-05 13:37:26

dext
Member
From: Poland, Kraków
Registered: 2008-02-01
Posts: 124

Re: Systemd hangs trying to mount /home [solved]

Found a solution. Systemd looks like a back door to bring "Ubuntu" to Arch sad

Solution. Run:

systemctl mask systemd-cryptsetup

Add kernel option:

systemd.gpt_auto=0

https://www.freedesktop.org/software/sy … rator.html
https://manpages.debian.org/experimenta … .8.en.html
https://bbs.archlinux.org/viewtopic.php?id=207225

Offline

#3 2021-12-06 19:50:56

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,489

Re: Systemd hangs trying to mount /home [solved]

Good catch, but better use

systemd.gpt_auto=-1

see man page and commit.
This should be enough to get rid of the boot problem, i.e. no need to mask the systemd-cryptsetup.service for that reason - imagine you populate crypttab sometime later with another mount.

Offline

Board footer

Powered by FluxBB