From 4a88ec876b9fe7ea302cc5bc1a40f3d04731d52f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 6 Jan 2026 22:58:24 +0100 Subject: [PATCH] Disable Copy-on-Write for the swap subvolume per best practices --- bin/omarchy-hibernation-setup | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/omarchy-hibernation-setup b/bin/omarchy-hibernation-setup index ca68bdf1..75c6c582 100755 --- a/bin/omarchy-hibernation-setup +++ b/bin/omarchy-hibernation-setup @@ -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