diff --git a/scripts/OS/Arch/partition.sh b/scripts/OS/Arch/partition.sh index 15910422..9bd0781c 100755 --- a/scripts/OS/Arch/partition.sh +++ b/scripts/OS/Arch/partition.sh @@ -38,9 +38,12 @@ swapSize="$(echo "$memory" | awk '{ print int(($1 / 4) + 0.5)}')"; echo "w"; } | fdisk "$archDisk"; -disks=($(bash -c "echo $archDisk*")) -mount "${disks[2]}" /mnt; -mount --mkdir "${disks[0]}" /mnt/boot; -swapon "${disks[1]}"; +disks=($(bash -c "echo $archDisk*")); +bootDisk="${disks[0]}"; +swapDisk="${disks[1]}"; +linuxDisk="${disks[2]}"; +mount "$linuxDisk" /mnt; +mount --mkdir "$bootDisk" /mnt/boot; +swapon "$swapDisk"; popd > /dev/null;