[Nix-dev] luks encrypted home stopped mounting after channel update

Pascal Wittmann PascalWittmann at gmx.net
Wed May 20 10:23:25 CEST 2015


I have only glanced over your mail, but this issue seems to fit

	https://github.com/NixOS/nixpkgs/issues/7859

According to this issue it should be fixed with

	fd588f939cf456f3932619b4a8587731669cc0a7

but I haven't tried the fix myself yet.

On 05/20/2015 05:48 AM, Ellis Whitehead wrote:
> A few days ago, I ran `nixos-rebuild --switch` using the up-to-date
> unstable channel, and everything worked fine.  Last night I updated
> the channel again and rebuilt, but when I started my computer this
> morning, it doesn't prompt for the encryption password anymore, and
> home doesn't mount.  Any ideas?
> 
> I can get into my system by telling GRUB to boot the previous
> configuration instead, so the partition itself is fine.  Nothing
> changed in my configure.nix.  Here are the relevant lines:
> 
> ---
>     # Use the GRUB 2 boot loader.
>     boot.loader.grub.enable = true;
>     boot.loader.grub.version = 2;
>     # Define on which hard drive you want to install Grub.
>     boot.loader.grub.device = "/dev/sda";
> 
>     # Encrypted home
>     boot.initrd.luks.devices = [ { device = "/dev/sda6"; name = "home"; } ];
> 
>     fileSystems."/home".device = "/dev/mapper/home";
> ---
> 
> And this is my hardware-configuration-lorax.nix:
> 
> ---
> # Do not modify this file!  It was generated by ‘nixos-generate-config’
> # and may be overwritten by future invocations.  Please make changes
> # to /etc/nixos/configuration.nix instead.
> { config, pkgs, ... }:
> 
> {
>   imports =
>     [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
>     ];
> 
>   boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "xhci_hcd"
> "usbhid" ];
>   boot.kernelModules = [ "kvm-intel" ];
>   boot.extraModulePackages = [ ];
> 
>   fileSystems."/" =
>     { device = "/dev/sda5";
>       fsType = "ext4";
>     };
> 
>   swapDevices =[ ];
> 
>   nix.maxJobs = 4;
> }
> ---
> 
> The error message in `journalctl -xb` is:
> May 20 04:50:55 lorax systemd[1]: Job dev-mapper-home.device/start timed out.
> May 20 04:50:55 lorax systemd[1]: Timed out waiting for device
> dev-mapper-home.device.
> May 20 04:50:55 lorax systemd[1]: Dependency failed for /home.
> May 20 04:50:55 lorax systemd[1]: Dependency failed for Local File Systems.
> May 20 04:50:55 lorax systemd[1]: Triggering OnFailure= dependencies
> of local-fs.target.
> May 20 04:50:55 lorax systemd[1]: Dependency failed for File System
> Check on /dev/mapper/home.
> 
> The AES encryption modules is loaded, though.
> 
> Any ideas about how to get the system to ask for my encryption
> password again?  Much appreciated,
> Ellis
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150520/2c59ef8c/attachment.bin 


More information about the nix-dev mailing list