Rename install disk variable
This commit is contained in:
parent
bd9fa2933e
commit
3a2d6ee3d8
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
pushd "${BASH_SOURCE%/*}" > /dev/null;
|
||||
|
||||
ARCH_DISK="${ARCH_DISK:-$(chooseDisk "Which disk do you wish to format for installing Arch?")}";
|
||||
source "../../Scripts/choose-disk.sh";
|
||||
archDisk="$(chooseDisk "Which disk do you whish to format for installing Arch?")";
|
||||
memory="$(cat /proc/meminfo | awk -F " " '/^MemTotal/ { print $2 }')";
|
||||
swapSize="$(echo "$memory" | awk '{ print int(($1 / 1024 / 1024 4) + 0.5)}')";
|
||||
|
||||
|
@ -35,9 +35,9 @@ swapSize="$(echo "$memory" | awk '{ print int(($1 / 1024 / 1024 4) + 0.5)}')";
|
|||
echo "23";
|
||||
|
||||
echo "w";
|
||||
} | fdisk "$archDisk";
|
||||
} | fdisk "$ARCH_DISK";
|
||||
|
||||
disks=($(bash -c "echo $archDisk*"));
|
||||
disks=($(bash -c "echo $ARCH_DISK*"));
|
||||
bootDisk="${disks[1]}";
|
||||
swapDisk="${disks[2]}";
|
||||
linuxDisk="${disks[3]}";
|
||||
|
|
Loading…
Reference in a new issue