[systemd-devel] [PATCH 6/7] mount: filesystems mounted in the initrd should not conflict with umount.target in the real root

Tom Gundersen teg at jklm.no
Fri Aug 23 17:09:34 PDT 2013


On 24 Aug 2013 03:51, "Colin Walters" <walters at verbum.org> wrote:
>
> First, thanks for working on this, most of these patches look sane to
> me.
>
> On Fri, 2013-08-23 at 15:09 +0800, Tom Gundersen wrote:
>
> > +        if (path_equal(m->where, "/") ||
> > +            path_equal(m->where, "/usr"))
> > +                return false;
>
> But it annoys me that we're propagating this hardcoding in the new code
> too.  How about we make systemd inspect /proc/self/mountinfo *very*
> early on at boot when it starts, and ensure skip unmounting these, under
> the assumption they'll be taken care of either in the initrd, or by the
> final kill spree?

This has been bothering me too, but haven't gotten around to sorting it out
properly yet. Your idea sounds like the best approach, I'll have a look at
it.

Cheers,

Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130824/d763e9e9/attachment.html>


More information about the systemd-devel mailing list