When installing Artix Linux with only home folder encryption (setup via /etc/conf.d/dmcrypt) the passphrase is correctly asked at boot for the encrypted home folder and decrypted if correct passphrase is given but the drive does not get mounted to /home. It was not a /etc/fstab issue because after logging in as root mount -a did mount the drive to /home correctly.
The fix was to add dmcrypt to /etc/conf.d/localmount under depend() after need fsck root. I thought that was it and opened up the PR: #965
However, @navi-desu correctly noticed that dmcrypt should be added to use instead of need. However this does not work, it only works when dmcrypt is part of need.
I closed the original PR (there is some useful information there too) and opened up this bug ticket instead.
# This works
$ git diff
diff --git a/init.d/localmount.in b/init.d/localmount.in
index b709fb2c..4179d162 100644
--- a/init.d/localmount.in
+++ b/init.d/localmount.in
@@ -13,7 +13,7 @@ description="Mounts disks and swap according to /etc/fstab."
depend()
{
- need fsck root
+ need fsck root dmcrypt
use lvm modules
after clock lvm modules
keyword -docker -podman -jail -lxc -prefix -systemd-nspawn -vserver -wsl
# This should work but it does not
$ git diff
diff --git a/init.d/localmount.in b/init.d/localmount.in
index b709fb2c..1966c0a6 100644
--- a/init.d/localmount.in
+++ b/init.d/localmount.in
@@ -14,7 +14,7 @@ description="Mounts disks and swap according to /etc/fstab."
depend()
{
need fsck root
- use lvm modules
+ use lvm modules dmcrypt
after clock lvm modules
keyword -docker -podman -jail -lxc -prefix -systemd-nspawn -vserver -wsl
}
When installing Artix Linux with only home folder encryption (setup via
/etc/conf.d/dmcrypt) the passphrase is correctly asked at boot for the encrypted home folder and decrypted if correct passphrase is given but the drive does not get mounted to/home. It was not a/etc/fstabissue because after logging in as rootmount -adid mount the drive to/homecorrectly.The fix was to add
dmcryptto/etc/conf.d/localmountunderdepend()afterneed fsck root. I thought that was it and opened up the PR: #965However, @navi-desu correctly noticed that
dmcryptshould be added touseinstead ofneed. However this does not work, it only works whendmcryptis part ofneed.I closed the original PR (there is some useful information there too) and opened up this bug ticket instead.