Store disk names in variables
This commit is contained in:
parent
37fcbd3557
commit
36fc589408
1 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue