nix/os/devices: add a delay after opening the luks partition
This commit is contained in:
parent
c581e5d0a3
commit
69034f287c
1 changed files with 1 additions and 0 deletions
|
@ -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}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue