mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-09 20:21:34 -05:00
Fixed swap.
This commit is contained in:
parent
ee27105889
commit
f3f5b50b6d
@ -1,3 +1,3 @@
|
|||||||
How does it work?
|
How does it work?
|
||||||
|
|
||||||
```bash <(curl -sL u.nu/ws5e2)```
|
```sh <(curl -sL u.nu/ws5e2)```
|
||||||
|
@ -137,7 +137,7 @@ else
|
|||||||
# Removing swap subvolumes and fstab entry in case it's not needed.
|
# Removing swap subvolumes and fstab entry in case it's not needed.
|
||||||
echo "Deleting BTRFS swap subvolume."
|
echo "Deleting BTRFS swap subvolume."
|
||||||
mount $BTRFS -o subvolid=5 /home
|
mount $BTRFS -o subvolid=5 /home
|
||||||
head -n -4 /home/@/etc/fstab
|
head -n -4 /home/@/etc/fstab > /home/@/etc/new_fstab && mv /home/@/etc/fstab
|
||||||
btrfs su de /home/@swap &>/dev/null
|
btrfs su de /home/@swap &>/dev/null
|
||||||
umount -R /home
|
umount -R /home
|
||||||
echo "No swapfile has been added."
|
echo "No swapfile has been added."
|
||||||
|
Loading…
Reference in New Issue
Block a user