Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

Chris Murphy
2014-04-23T22:35:03Z

On Apr 23, 2014, at 1:06 PM, Kai Krakow <hurikhan77+btrfs@gmail.com> wrote:

> Пламен Петров <plamen@petrovi.no-ip.info> schrieb:
>
> I'm going with the module suggestion from Marc, too.
>
>> /dev/sda2 / btrfs relatime,compress=zlib 0 0
>
> This line looks kinda useless to me. The compress=zlib option won't be
> applied at boot and cannot be changed at runtime because AFAIR btrfs does
> not allow that yet.

So long as no other part of the same volume (including a subvolume) has been mounted, an ro rootfs remounted upon consultation of fstab will result in the fstab mount options being applied to remount. There might be a handful of btrfs options that don't work with remount, but compress isn't one of them. At least on Fedora since the dawn of btrfs, it's been possible to specify compress in fstab and its honored when rootfs is remounted rw.

Also, relatime is default. So the cleaned up mount option for fstab for the above would be merely compress (zlib is the default).

Chris Murphy