It's really a shame I didn't find this sooner...
Well, thank you very much for your time and all your explanations!
-- Ben
On Mon, 2016-05-16 at 23:01 -0500, Miguel Bernal Marin wrote:
Exactly,
Another good explanation could be found in:
https://bugzilla.kernel.org/show_bug.cgi?id=61601#c10
On 5/16/2016 8:45 PM, fb.dev.clx wrote:
Miguel,
Reading further, it appears to be impossible to set any of the fs-
independent flags via `rootflags`, which explains the special case
code
for the `ro` and `rw`.
Yes :D
It is suggested that using an initrd/initramfs to mount the rootfs
instead could work around it.
And in Clear Linux would like to avoid initrd/initramfs
So, when booting without an initramfs, it seems there is no way to
pass
fs-independent flags for the rootfs at boot time. Therefore,
`/etc/fstab` and a remount of the rootfs are required until any
other
option exists...
Yes and the remount is automatically when booting.
>
> -- Ben
>
>
>
>
> On Mon, 2016-05-16 at 19:48 -0500, fb.dev.clx wrote:
> >
> > Hi Miguel,
> >
> > Thank you for your answer.
> >
> > >
> > >
> > > The way to use noatime is by using /etc/fstab
> > I am just puzzled by this as the description of `rootflags`
> > specifically says that it allows you to "give options pertaining
> > to
> > the
> > mounting of the root filesystem just as you would to the mount
> > program". So if it is accepted by `mount` it should also be
> > accepted
> > by
> > `rootflags`.
> > Therefore, the bug is either in the implementation or in the
> > documentation...
> > Also, as `/etc/fstab` is only accessible when root filesystem is
> > already mounted, adding `noatime` in this file means that the
> > filesystem should be remounted during the boot process to get the
> > wanted option(s).
> >
> > What do you think?
> >
> > -- Ben
> >
> >
> > On Mon, 2016-05-16 at 19:09 -0500, Miguel Bernal Marin wrote:
> > >
> > >
> > > Hi
> > >
> > > >
> > > >
> > > >
> > > > >
> > > > >
> > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > As I wanted to experiment a few kernel parameters on a
> > > > > > bare
> > > > > > metal
> > > > > > install, this resulted in a kernel panic with
> > > > > > `rootflags=noatime`
> > > > > > passed in `/boot/loader/entries/Clear-linux-native-
> > > > > > *.conf`
> > > > > > file:
> > > The way to use noatime is by using /etc/fstab
> > >
> > > >
> > > >
> > > >
> > > > >
> > > > >
> > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Any suggestion?
> > > Please create the file /etc/fstab adding the option "noatime"
> > >
> > > i.e.
> > >
> > > # <file system> <mount
> > >
point> <type> <options> <dump> <pass>
> > > /dev/YOUR_ROOT_DEV / ext4 defaults,noatime 0
> > > 1
> > >
> > >
> > > Then reboot your system, and your will find:
> > >
> > > /dev/YOUR_ROOT_DEV on / type ext4 (rw,noatime,data=ordered)
> > >
> > >
> > >