classy-giraffe / easy-arch

Script for boostrapping Arch Linux with BTRFS, snapshots and LUKS encryption (UEFI only).
https://classy-giraffe.github.io/easy-arch
Apache License 2.0
237 stars 54 forks source link

Actually disable CoW on @swap and @var_log #5

Closed TommyTran732 closed 3 years ago

TommyTran732 commented 3 years ago

There is a bug with BTRFS where it uses the same mount option for the first subvolume for any subvolumes 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)

classy-giraffe commented 3 years ago

Done.