From 0f389165bf5cedc80cc161efc6c10c265120892b Mon Sep 17 00:00:00 2001 From: TommyTran732 <57488583+tommytran732@users.noreply.github.com> Date: Wed, 14 Apr 2021 07:52:32 -0400 Subject: [PATCH] Actually disable CoW on @swap and @var_log There is a bug with BTRFS where it uses the same mount option for the first subvolume for any subvolume you mount. That means the nodatacow flag you set on line 74 and 75 are useless. In order to disable CoW, you must add chattr +C to those. https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs(5) --- easy-arch.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/easy-arch.sh b/easy-arch.sh index 5b74247..72a260b 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -76,6 +76,9 @@ mount -o nodatacow,subvol=@swap $BTRFS /mnt/swap mkdir /mnt/boot/efi mount $ESP /mnt/boot/efi +chattr +C @/mnt/var/log +chattr +C @/mnt/swap + # Pacstrap (setting up a base sytem onto the new root). echo "Installing the base system (it may take a while)." pacstrap /mnt base linux linux-firmware btrfs-progs grub grub-btrfs efibootmgr snapper sudo networkmanager