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:
parent
d2efb8f102
commit
81199abf17
@ -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,6 +133,9 @@ then
|
||||
swapon /mnt/swap/swapfile
|
||||
echo "/swap/swapfile none swap defaults 0 0" >> /mnt/etc/fstab
|
||||
else
|
||||
mount $BTRFS -o subvolid=5 /home
|
||||
btrfs su de /home/@swap
|
||||
umount -R /home
|
||||
echo "No swapfile has been added."
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user