Ask for disk if the specified one does not exist
This commit is contained in:
parent
6263b28e7b
commit
94960c20df
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ ARCH_DISK="${ARCH_DISK}";
|
||||||
memory="$(cat /proc/meminfo | awk -F " " '/^MemTotal/ { print $2 }')";
|
memory="$(cat /proc/meminfo | awk -F " " '/^MemTotal/ { print $2 }')";
|
||||||
swapSize="$(echo "$memory" | awk '{ print int(($1 / 1024 / 1024 4) + 0.5)}')";
|
swapSize="$(echo "$memory" | awk '{ print int(($1 / 1024 / 1024 4) + 0.5)}')";
|
||||||
|
|
||||||
if [ -z "$ARCH_DISK" ]
|
if [ -z "$ARCH_DISK" ] || [ ! -e "/dev/$ARCH_DISK" ]
|
||||||
then
|
then
|
||||||
chooseDisk ARCH_DISK "Which disk do you wish to format for installing Arch?";
|
chooseDisk ARCH_DISK "Which disk do you wish to format for installing Arch?";
|
||||||
fi;
|
fi;
|
||||||
|
|
Loading…
Reference in a new issue