On Wed, May 4, 2016 at 7:52 AM, Niccolò Belli <darkbasic@xxxxxxxxxxxxxxx> wrote: > I tried to add rootflags=noatime,compress=lzo,discard,autodefrag to > GRUB_CMDLINE_LINUX in /etc/default/grub as you suggested but my system > didn't manage to boot, probably because grub automatically adds > rootflags=subvol=@ and only a single rootflags can be taken into account. Do > you have any suggestion? Well, strictly speaking none of these options are necessary as rootflags at boot time because ostensibly on most distros the file system is read only until it reads fstab and then remounts rw with all of your options. So it doesn't matter that some of them are missing. If your distro immediately mounts btrfs rw (I think Ubuntu does?) then it's a small problem for a small number of files that get touched during startup. I don't think it's worth the hassle. If you think it's worth the hassle, then you have to directly modify the grub.cfg to include an expanded rootflags parameter. Right now grub-mkconfig logic doesn't not include all options in fstab for rootflags. -- Chris Murphy -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
