Create file systems before use

This commit is contained in:
Manuel Thalmann 2023-04-01 03:30:58 +02:00
parent 933da5ef6c
commit 009c60dc9b

View file

@ -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";