1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-13 21:51:33 -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). # Pacstrap (setting up a base sytem onto the new root).
echo "Installing the base sytem." 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. # Fstab generation.
echo "Generating a new fstab." echo "Generating a new fstab."
@ -133,6 +133,9 @@ then
swapon /mnt/swap/swapfile swapon /mnt/swap/swapfile
echo "/swap/swapfile none swap defaults 0 0" >> /mnt/etc/fstab echo "/swap/swapfile none swap defaults 0 0" >> /mnt/etc/fstab
else else
mount $BTRFS -o subvolid=5 /home
btrfs su de /home/@swap
umount -R /home
echo "No swapfile has been added." echo "No swapfile has been added."
fi fi