On Понедельник 13 мая 2013 18:04:39 Moritz Ulrich wrote: > I'm a happy NixOS user on a Thinkpad x230. It's lvm-on-luks, with > /boot on /dev/sda1 ("x230-boot") and a luks-volume on /dev/sda2 > ("luksroot"). Different lvm volumes get mounted via labels on / and > /home: > > boot.luks = { > enable = true; > devices = [ > {name = "luksroot"; > device = "/dev/sda2"; > allowDiscards = true; > }]; > }; > > fileSystems."/".label = "x230-root"; > fileSystems."/boot".label = "x230-boot"; > fileSystems."/home".label = "x230-home"; > fileSystems."/tmp" = { device = "tmpfs"; fsType = "tmpfs"; }; > > Everything works fine when running on bare metal, starting a virtual > machine built via `nixos-rebuild build-vm' stops while booting: > > Device /dev/sda2 doesn't exist or access denied. > starting device mapper and LVM > No Volume groups found > failed to resume
build-vm doesn't replicate your lvm setup and that's why it breaks. I'm afraid you have to disable luks for the test. I don't remember if it overrides filesystems in a sane way. _______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev