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 = ''
|
boot.initrd.extraUtilsCommandsTest = ''
|
||||||
$out/bin/cryptsetup --version
|
$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.
|
# Wait for luksRoot to appear, e.g. if on a usb drive.
|
||||||
# XXX: copied and adapted from stage-1-init.sh - should be
|
# XXX: copied and adapted from stage-1-init.sh - should be
|
||||||
# available as a function.
|
# available as a function.
|
||||||
@ -59,8 +57,6 @@ in
|
|||||||
fi
|
fi
|
||||||
# open luksRoot and scan for logical volumes
|
# open luksRoot and scan for logical volumes
|
||||||
cryptsetup luksOpen ${luksRoot} luksroot
|
cryptsetup luksOpen ${luksRoot} luksroot
|
||||||
lvm vgscan
|
|
||||||
lvm vgchange -ay
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user