Seems that btrfs ignores compression attribute if compression was set using 
mount option.
So, the solution is to set compression attributes per-directory:

1) remove 'compress=zstd' from your fstab root record
2) sudo btrfs property set /boot compression lzo # ensure this dir will remain 
readable by grub
3) sudo btrfs filesystem defragment -vrclzo /boot # ensure /boot gets 
recompressed
4) for $d in bin etc lib lib64 opt sbin snap srv usr var; do sudo btrfs 
property set /$d compression zstd; done

Directory list is for Ubuntu 18, check and adjust for your own needs.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1751517

Title:
  ubuntu bionic grub can't boot zstd compressed filesystem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1751517/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to