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

Colin Walters walters at verbum.org
Fri Aug 23 12:51:33 PDT 2013


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?





More information about the systemd-devel mailing list