From 81199abf1746a17878e74c1de4422daf53c8f9f1 Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Mon, 1 Feb 2021 09:08:10 +0100 Subject: [PATCH] Enabled deleting swap subvol. --- easy-arch.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/easy-arch.sh b/easy-arch.sh index 0bf9dd7..3cf34a9 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -80,7 +80,7 @@ mount $ESP /mnt/boot # Pacstrap (setting up a base sytem onto the new root). echo "Installing the base sytem." -pacstrap /mnt base linux linux-firmware btrfs-progs grub grub-btrfs efibootmgr snapper neovim networkmanager +pacstrap /mnt base linux linux-firmware btrfs-progs grub grub-btrfs efibootmgr snapper sudo neovim networkmanager # Fstab generation. echo "Generating a new fstab." @@ -133,7 +133,10 @@ then swapon /mnt/swap/swapfile echo "/swap/swapfile none swap defaults 0 0" >> /mnt/etc/fstab else - echo "No swapfile has been added." + mount $BTRFS -o subvolid=5 /home + btrfs su de /home/@swap + umount -R /home + echo "No swapfile has been added." fi # Configuring the system.