forked from mirrors/nixpkgs
luksroot uses preLVMCommands instead of postDeviceCommands
svn path=/nixos/trunk/; revision=31131
This commit is contained in:
parent
90756a787c
commit
c15aa7aea3
|
@ -40,11 +40,9 @@ in
|
|||
|
||||
boot.initrd.extraUtilsCommandsTest = ''
|
||||
$out/bin/cryptsetup --version
|
||||
$out/bin/lvm vgscan --version
|
||||
$out/bin/lvm vgchange --version
|
||||
'';
|
||||
|
||||
boot.initrd.postDeviceCommands = ''
|
||||
boot.initrd.preLVMCommands = ''
|
||||
# Wait for luksRoot to appear, e.g. if on a usb drive.
|
||||
# XXX: copied and adapted from stage-1-init.sh - should be
|
||||
# available as a function.
|
||||
|
@ -59,8 +57,6 @@ in
|
|||
fi
|
||||
# open luksRoot and scan for logical volumes
|
||||
cryptsetup luksOpen ${luksRoot} luksroot
|
||||
lvm vgscan
|
||||
lvm vgchange -ay
|
||||
'';
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue