mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-22 01:21: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).
|
# 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,7 +133,10 @@ 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
|
||||||
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
|
fi
|
||||||
|
|
||||||
# Configuring the system.
|
# Configuring the system.
|
||||||
|
Loading…
Reference in New Issue
Block a user