Closed peterhoeg closed 5 years ago
A side-effect of this is that nixos-rebuild test|switch
will also prompt for the password to unlock the volume which is admittedly not critical - just annoying.
Have you tried https://github.com/NixOS/nixpkgs/pull/45290 ? It's even more hacky IMO, but if there's no better idea that works...
Wasn't aware of that - I'll be dropping some comments over there.
@peterhoeg what's the status of this? I think this is the only issue holding up calling the release. I see your comments on #45290, but don't really know if it's progress or not.
This is only an issue only if the user's home directory is encrypted in a way where it's not being unlocked in early boot, right? (I don't know your setup, I'm assuming some kind of unlock-with-PAM thing, right?)
This is only an issue only if the user's home directory is encrypted in a way where it's not being unlocked in early boot, right? (I don't know your setup, I'm assuming some kind of unlock-with-PAM thing, right?)
Correct, basically a dm-crypt
volume per user mounted on /home/$USER
during login by users.users.USER.cryptHomeLuks = true;
and pam.mount.enable = true;
. It's a fairly standard setup for laptops.
But in any case, it should be OK now with the PR above.
Issue description
Regression introduced by #42910.
If plasma is in use and the user's home directory is on an encrypted LV, the activation script will try to access /home/$USER which is not available and will hang waiting for the user to hit esc:
Cc: @bkchr
I consider this a blocker for 18.09 as with plymouth enabled, there is no indication that the boot isn't progressing.
Steps to reproduce
users.users.peter.cryptHomeLuks = "/dev/mapper/vg0-lv_home_peter";
xserver.desktopManager.plasma5.enable = true;
Technical details
"x86_64-linux"
Linux 4.18.10, NixOS, 19.03.git.e3a7474c3beM (Koi)
yes
yes
nix-env (Nix) 2.1.2
"nixos-18.03pre121670.4cbbecc85db"