From 96a85cd11e7af47e338f91c18871df306c4ba2fd Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Mon, 1 Feb 2021 09:13:05 +0100 Subject: [PATCH] Spacing. --- easy-arch.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/easy-arch.sh b/easy-arch.sh index 772810d..11a0d3a 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Unmounting partitions. +echo "Unmounting /mnt in order to proceed with the installation of Arch Linux." +umount -R /mnt + # Exit on STDERR. set -e @@ -23,13 +27,12 @@ then wipefs -af $DISK sgdisk -Zo $DISK else - echo "Quitting." - exit + echo "Quitting." + exit fi # Creating a new partition scheme. echo "Creating new partition scheme on $DISK." - parted -s $DISK \ mklabel gpt \ mkpart ESP fat32 1MiB 513MiB \ @@ -52,8 +55,6 @@ echo "Opening the newly created LUKS Container." cryptsetup open $Cryptroot cryptroot BTRFS=/dev/mapper/cryptroot -partprobe $DISK - # Formatting the LUKS Container as BTRFS. echo "Formatting the LUKS container as BTRFS." mkfs.btrfs $BTRFS @@ -173,6 +174,7 @@ echo "Enabling NetworkManager." systemctl enable NetworkManager --root=/mnt # Unmounting partitions. +echo "Unmounting /mnt." umount -R /mnt -echo "Done." +echo "Done, you may now wish to reboot." exit