1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-21 17:11:34 -05:00

Enabled deleting swap subvol.

This commit is contained in:
Tommaso Chiti 2021-02-01 09:08:10 +01:00
parent d2efb8f102
commit 81199abf17

View File

@ -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.