-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos-rebuild test (and switch) causes pam_mount to remount #44586
Comments
Duplicate of #47577. |
This isn't actually a duplicate. With the fix in #47842, |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
I've just patched it out locally, but this needs to be fixed properly. |
nixos-rebuild test causes pam_mount to prompt for a password when running with an encrypted home: building '/nix/store/p6bflh7n5zy2dql8l45mix9qnzq65hbk-nixos-system-mildred-18.09.git.98592c5da79M.drv'... activating the configuration... setting up /etc... reenter password for pam_mount: (mount.c:68): Messages from underlying mount program: (mount.c:72): crypt_activate_by_passphrase: File exists (pam_mount.c:522): mount of /dev/mapper/vg0-lv_home_peter failed kbuildsycoca5 running... This change makes pam_mount not prompt. It still tries to remount (and fails in the process) but that message can be ignored. Fixes: NixOS#44586
I marked this as stale due to inactivity. → More info |
I marked this as stale due to inactivity. → More info |
keep |
nixos-rebuild test causes pam_mount to prompt for a password when running with an encrypted home: building '/nix/store/p6bflh7n5zy2dql8l45mix9qnzq65hbk-nixos-system-mildred-18.09.git.98592c5da79M.drv'... activating the configuration... setting up /etc... reenter password for pam_mount: (mount.c:68): Messages from underlying mount program: (mount.c:72): crypt_activate_by_passphrase: File exists (pam_mount.c:522): mount of /dev/mapper/vg0-lv_home_peter failed kbuildsycoca5 running... This change makes pam_mount not prompt. It still tries to remount (and fails in the process) but that message can be ignored. Fixes: #44586
This issue reappleared in nixos unstable and it's the same as you described. And home manager is not working for me if pam mount is set, possibly because related problems. Any ideas? Or should I open a new issue? |
So I have been carrying the mentioned patch on my side since this was first mentioned. I have a laptop running unstable with an encrypted home and so far there has been zero problems. Maybe you can share your nixos config? |
Do you still have these error indicating pam_mount tries to mount again (not remount):
When running |
Yep, but it doesn't matter. The patch simply makes it not prompt for a password when the activation scripts tries to set up the mount, but as it's already there, you get the messages mentioned above, which is ok. |
Issue description
Within the last couple of weeks, doing
nixos-rebuild test
causes pam_mount to remount encrypted home directories and thus asking for passwords. This wasn't the case in the past.Relevant output:
Steps to reproduce
users.users.some_user.cryptHomeLuks = "/dev/mapper/some_lv";
nixos-rebuild test
Technical details
"x86_64-linux"
Linux 4.17.11, NixOS, 18.09.git.98592c5da79M (Jellyfish)
yes
yes
nix-env (Nix) 2.0.4
"nixos-18.03pre121670.4cbbecc85db"
""
/home/peter/src/active/nixpkgs_unstable
The text was updated successfully, but these errors were encountered: