[systemd-devel] [PATCH] fstab-generator: introduce rd.weak_sysroot to bypass failures in sysroot.mount
WANG Chao
chaowang at redhat.com
Wed Jul 31 22:36:42 PDT 2013
On 07/30/13 at 04:40pm, Tom Gundersen wrote:
> On Tue, Jul 30, 2013 at 4:13 PM, Harald Hoyer <harald at redhat.com> wrote:
> > On 07/30/2013 03:46 PM, Zbigniew Jędrzejewski-Szmek wrote:
> >> Maybe rootfsflags=nofail could do be used as this flag?
> >
> > rootfsflags=nofail sounds ok, if it is not used for booting the initial system.
>
> Yeah, you are right, this looks like it should just work.
>
> Though the behavior of initrd-parse-etc.service and
> initrd-switch-root.service will be non-deterministic if this flag is
> specified (unless I'm missing something). Maybe they should be
> explicitly ordered After/Wants=sysroot.mount ? That may cause a long
> timeout, but at least there will be no emergency mode.
No, guys, nofail mount option will *only* work when device (or should I
say filesystem) doesn't exist.
>From mount(8):
[..]
_nofail_ Do not report errors for this device if it does not exist.
So if filesystem is corrupted or something else fails the sysroot.mount,
initrd-root-fs.target will never be reached.
Thanks
WANG Chao
More information about the systemd-devel
mailing list