mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Disable Copy-on-Write for the swap subvolume per best practices
This commit is contained in:
@@ -23,6 +23,7 @@ SWAP_FILE="$SWAP_SUBVOLUME/swapfile"
|
|||||||
if ! sudo btrfs subvolume show "$SWAP_SUBVOLUME" &>/dev/null; then
|
if ! sudo btrfs subvolume show "$SWAP_SUBVOLUME" &>/dev/null; then
|
||||||
echo "Creating Btrfs subvolume"
|
echo "Creating Btrfs subvolume"
|
||||||
sudo btrfs subvolume create "$SWAP_SUBVOLUME"
|
sudo btrfs subvolume create "$SWAP_SUBVOLUME"
|
||||||
|
sudo chattr +C "$SWAP_SUBVOLUME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create swapfile
|
# Create swapfile
|
||||||
|
|||||||
Reference in New Issue
Block a user