[systemd-devel] [PATCH] fstab-generator: default to "ro"
harald at redhat.com
Fri Mar 1 08:25:40 PST 2013
Am 01.03.2013 17:21, schrieb Tom Gundersen:
> On Fri, Mar 1, 2013 at 4:56 PM, Harald Hoyer <harald at redhat.com> wrote:
>> Am 01.03.2013 15:20, schrieb Tom Gundersen:
>>> On Fri, Mar 1, 2013 at 3:13 PM, <harald at redhat.com> wrote:
>>>> If no "ro" or "rw" is specified on the kernel command line, mount root
>>>> read-only on /sysroot by default
>>> Is this consistent with what the kernel does if you don't have an initramfs?
>> # > /tt
>> sh: /tt: Read-only file system
> Cool. +1 from me then.
> I had a look at the kernel sources, the default root mount options is
> "MS_RDONLY | MS_SILENT". Should we be passing "silent" as well to
> stay compatible? I don't know what the downside would be, except that
> there does not appear to be a way to switch back to "loud" from the
> kernel commandline.
Now, the only thing missing is generating systemd-fsck at .service "Wants" and
"After" for sysroot.mount and sysroot-usr.mount.
More information about the systemd-devel