mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Enabled deleting swap subvol.
This commit is contained in:
parent
d2efb8f102
commit
81199abf17
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue