mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
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)
This commit is contained in:
parent
aa4edb94f1
commit
0f389165bf
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue