install: Retry on passphrase mismatch
This commit is contained in:
@@ -32,8 +32,10 @@ EOF
|
|||||||
# might take a bit for the new partion table to be updated in-kernel
|
# might take a bit for the new partion table to be updated in-kernel
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
|
while : ; do
|
||||||
cryptsetup --batch-mode luksFormat --iter-time 1000 ${DEVICE}3
|
cryptsetup --batch-mode luksFormat --iter-time 1000 ${DEVICE}3
|
||||||
cryptsetup --batch-mode open ${DEVICE}3 cryptpart
|
cryptsetup --batch-mode open --tries 1 ${DEVICE}3 cryptpart && break
|
||||||
|
done
|
||||||
|
|
||||||
pvcreate /dev/mapper/cryptpart
|
pvcreate /dev/mapper/cryptpart
|
||||||
vgcreate vgbase /dev/mapper/cryptpart
|
vgcreate vgbase /dev/mapper/cryptpart
|
||||||
|
|||||||
@@ -32,8 +32,10 @@ EOF
|
|||||||
# might take a bit for the new partion table to be updated in-kernel
|
# might take a bit for the new partion table to be updated in-kernel
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
cryptsetup --batch-mode luksFormat --iter-time 1000 ${DEVICE}p3
|
while : ; do
|
||||||
cryptsetup --batch-mode open ${DEVICE}p3 cryptpart
|
cryptsetup --batch-mode luksFormat --iter-time 1000 ${DEVICE}3
|
||||||
|
cryptsetup --batch-mode open --tries 1 ${DEVICE}3 cryptpart && break
|
||||||
|
done
|
||||||
|
|
||||||
pvcreate /dev/mapper/cryptpart
|
pvcreate /dev/mapper/cryptpart
|
||||||
vgcreate vgbase /dev/mapper/cryptpart
|
vgcreate vgbase /dev/mapper/cryptpart
|
||||||
|
|||||||
Reference in New Issue
Block a user