From 37fcbd3557c1047b103d27480f546f0007a0ef8a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 1 Apr 2023 03:15:32 +0200 Subject: [PATCH] Mount partitioned devices --- scripts/OS/Arch/partition.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/OS/Arch/partition.sh b/scripts/OS/Arch/partition.sh index e7b35da2..15910422 100755 --- a/scripts/OS/Arch/partition.sh +++ b/scripts/OS/Arch/partition.sh @@ -38,4 +38,9 @@ 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]}"; + popd > /dev/null;