nix/os/devices: add a delay after opening the luks partition

This commit is contained in:
steveej 2018-11-12 11:27:19 +01:00
parent c581e5d0a3
commit 69034f287c

View file

@ -31,6 +31,7 @@ in rec {
set -xe set -xe
echo Mounting ${diskId} echo Mounting ${diskId}
cryptsetup luksOpen ${ownLib.disk.bootLuksDevice diskId} ${ownLib.disk.luksName diskId} cryptsetup luksOpen ${ownLib.disk.bootLuksDevice diskId} ${ownLib.disk.luksName diskId}
sleep 1
vgchange -ay ${ownLib.disk.volumeGroup diskId} vgchange -ay ${ownLib.disk.volumeGroup diskId}
mkdir -p /mnt mkdir -p /mnt
mkdir ${mntRootVol} mkdir ${mntRootVol}