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
|
||||
echo "Creating Btrfs subvolume"
|
||||
sudo btrfs subvolume create "$SWAP_SUBVOLUME"
|
||||
sudo chattr +C "$SWAP_SUBVOLUME"
|
||||
fi
|
||||
|
||||
# Create swapfile
|
||||
|
||||
Reference in New Issue
Block a user