Ensure disks are formatted properly

This commit is contained in:
Manuel Thalmann 2023-06-09 23:31:02 +02:00
parent c092a039f1
commit 1dad484c06

View file

@ -47,7 +47,12 @@ fi;
echo "w";
} | fdisk "$ARCH_DISK";
disks=($(bash -c "echo $ARCH_DISK*"));
while true
do
disks=($(bash -c "echo $ARCH_DISK*"));
[ "${#disks[@]}" -ge 4 ] && break;
done;
bootDisk="${disks[1]}";
swapDisk="${disks[2]}";
linuxDisk="${disks[3]}";