From a785ba7d5d60c21e72cbf611b289f1d1620291a8 Mon Sep 17 00:00:00 2001 From: seajee Date: Fri, 9 Aug 2024 02:44:41 +0200 Subject: [PATCH] Major fixes - Preinstall on the new system the "less" package - Create the swap file after mounting the root partition --- install.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 10345b5..ceb64b8 100755 --- a/install.sh +++ b/install.sh @@ -83,10 +83,6 @@ echo w # Write changes # TODO: Check if fdisk terminated succesfully -# Swap file -echo "[INFO] Creating the swap file" -mkswap -U clear --size 4G --file /mnt/swapfile &>/dev/null - # Format the partitions echo "[INFO] Formatting the partitions" mkfs.fat -F 32 "${disk}1" &>/dev/null @@ -98,6 +94,10 @@ mkfs.ext4 "${disk}2" &>/dev/null echo "[INFO] Mounting the file systems" mount "${disk}2" /mnt mount --mkdir "${disk}1" /mnt/boot + +# Swap file +echo "[INFO] Creating the swap file" +mkswap -U clear --size 4G --file /mnt/swapfile &>/dev/null swapon /mnt/swapfile # TODO: Select the mirrors for faster download speeds @@ -107,7 +107,8 @@ echo "[INFO] Installing essential packages" pacstrap -K /mnt base linux linux-firmware \ intel-ucode amd-ucode \ networkmanager \ - grub efibootmgr + grub efibootmgr \ + less # Generate the fstab file echo "[INFO] Generating fstab file"