[Nix-dev] luks changes

Lluís Batlle i Rossell viric at viric.name
Sat Mar 3 23:59:44 CET 2012


On Sat, Mar 03, 2012 at 09:50:41PM +0100, Mathijs Kwik wrote:
> 2012/3/3 Lluís Batlle i Rossell <viric at viric.name>:
> > Hello people using luksRoot... I changed that a bit on nixos, I hope that for
> > the better. I used it to get a ciphered swap that works for hibernation.
> >
> > If you had:
> > boot.initrd.luksRoot = "/dev/sda2";
> >
> > Then now you have to write:
> > boot.initrd.luks.enable = true;
> > boot.initrd.luks.devices = [ { name = "luksroot"; device = "/dev/sda2"; } ]
> 
> Can you please explain "name" ?
> Is that a label that is being searched for?

Yes, the name in the device mapper. /dev/mapper/luksroot, it will become.

cryptsetup uses the term:
        luksOpen <device> <name>  - open LUKS device as mapping <name>

Regards,
Lluís.


More information about the nix-dev mailing list