From 2d75518a182c80ee469d72c5faa1f5837206f234 Mon Sep 17 00:00:00 2001
From: Manuel Thalmann <m@nuth.ch>
Date: Sat, 1 Apr 2023 03:30:58 +0200
Subject: [PATCH] Create file systems before use

---
 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 9bd0781c..f0ffa4d6 100755
--- a/scripts/OS/Arch/partition.sh
+++ b/scripts/OS/Arch/partition.sh
@@ -42,6 +42,11 @@ disks=($(bash -c "echo $archDisk*"));
 bootDisk="${disks[0]}";
 swapDisk="${disks[1]}";
 linuxDisk="${disks[2]}";
+
+mkfs.fat -F 32 "$bootDisk";
+mkswap "$swapDisk";
+mkfs.ext4 "$linuxDisk";
+
 mount "$linuxDisk" /mnt;
 mount --mkdir "$bootDisk" /mnt/boot;
 swapon "$swapDisk";