diff --git a/install_scripts/ares.sh b/install_scripts/ares.sh index f43338b..24594ad 100755 --- a/install_scripts/ares.sh +++ b/install_scripts/ares.sh @@ -32,8 +32,10 @@ EOF # might take a bit for the new partion table to be updated in-kernel sleep 1 -cryptsetup --batch-mode luksFormat --iter-time 1000 ${DEVICE}3 -cryptsetup --batch-mode open ${DEVICE}3 cryptpart +while : ; do + cryptsetup --batch-mode luksFormat --iter-time 1000 ${DEVICE}3 + cryptsetup --batch-mode open --tries 1 ${DEVICE}3 cryptpart && break +done pvcreate /dev/mapper/cryptpart vgcreate vgbase /dev/mapper/cryptpart diff --git a/install_scripts/neptune.sh b/install_scripts/neptune.sh index a04280c..e7d3336 100755 --- a/install_scripts/neptune.sh +++ b/install_scripts/neptune.sh @@ -32,8 +32,10 @@ EOF # might take a bit for the new partion table to be updated in-kernel sleep 1 -cryptsetup --batch-mode luksFormat --iter-time 1000 ${DEVICE}p3 -cryptsetup --batch-mode open ${DEVICE}p3 cryptpart +while : ; do + cryptsetup --batch-mode luksFormat --iter-time 1000 ${DEVICE}3 + cryptsetup --batch-mode open --tries 1 ${DEVICE}3 cryptpart && break +done pvcreate /dev/mapper/cryptpart vgcreate vgbase /dev/mapper/cryptpart