Disable Copy-on-Write for the swap subvolume per best practices
This commit is contained in:
1 parent
59a7153d02
commit
4a88ec876b
1 file changed
+1
@@ -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