Create file systems before use

This commit is contained in:
Manuel Thalmann 2023-04-01 03:30:58 +02:00
parent 36fc589408
commit 2d75518a18

View file

@ -42,6 +42,11 @@ disks=($(bash -c "echo $archDisk*"));
bootDisk="${disks[0]}"; bootDisk="${disks[0]}";
swapDisk="${disks[1]}"; swapDisk="${disks[1]}";
linuxDisk="${disks[2]}"; linuxDisk="${disks[2]}";
mkfs.fat -F 32 "$bootDisk";
mkswap "$swapDisk";
mkfs.ext4 "$linuxDisk";
mount "$linuxDisk" /mnt; mount "$linuxDisk" /mnt;
mount --mkdir "$bootDisk" /mnt/boot; mount --mkdir "$bootDisk" /mnt/boot;
swapon "$swapDisk"; swapon "$swapDisk";