[systemd-devel] [PATCH] fstab-generator: introduce rd.weak_sysroot to bypass failures in sysroot.mount
WANG Chao
chaowang at redhat.com
Sun Aug 4 22:49:17 PDT 2013
On 07/30/13 at 06:52pm, Zbigniew Jędrzejewski-Szmek wrote:
> On Wed, Jul 31, 2013 at 12:46:22AM +0800, WANG Chao wrote:
> > On 07/31/13 at 12:32am, WANG Chao wrote:
> > > On 07/30/13 at 03:46pm, Zbigniew Jędrzejewski-Szmek wrote:
> > > > On Tue, Jul 30, 2013 at 09:43:16AM -0400, Vivek Goyal wrote:
> > > > > [CC harald]
> > > > >
> > > > > Not sure if this is right way to do or not but I will give more
> > > > > background about the issue.
> > > > >
> > > > > This assumption seems to be built into initramfs and systemd that root
> > > > > should always be mountable. If one can't mount root, it is a fatal
> > > > > failure.
> > > > >
> > > > > But in case of kdump initramfs, this assumption is no more valid. Core
> > > > > might be being saved to a target which is not root (say over ssh). And
> > > > > even if mounting root fails, it is ok.
> > > > >
> > > > > So we kind of need a mode (possibly driven by command line option) where
> > > > > if mouting root failed, it is ok and continue with mouting other targets
> > > > > and kdump module will then handle errors.
> > > > Maybe rootfsflags=nofail could do be used as this flag?
> > >
> > > rootflags=nofail works. Thanks.
> > >
> > > Although it results in a little difference between my approach, I prefer
> > > use this one than adding another cmdline param.
> >
> > I just find nofail option only works when mnt device doesn't exists.
> I think we treat nofail slightly differently, and don't make the
> .mount unit a requirement for local-fs.target or initrd-fs.target.
Yes, I don't want sysroot.mount unit to be a requirement for
initrd-root-fs.target. rootflags=nofail doesn't 100% work in this case.
So a new paratmeter/flag has to be created for generating a
sysroot.mount that "Wants" by initrd-root-fs.target.
More information about the systemd-devel
mailing list