Ensure disks are formatted properly
This commit is contained in:
parent
c092a039f1
commit
1dad484c06
1 changed files with 6 additions and 1 deletions
|
@ -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]}";
|
||||
|
|
Loading…
Reference in a new issue