[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
Wed Sep 11 16:48:55 PDT 2013


On Wed, 2013-09-11 at 19:11 +0200, Lennart Poettering wrote:

> Can you elaborate on this? Why wouldn't it suffice to drop in a .mount
> unit for the mount in question which excludes the mount point from being
> unmounted with this?

It doesn't appear possible to remove the default Conflicts= just by
creating /etc/systemd/system/var.mount.

I tried doing my plan of adding a boolean to mount units if we detect
them at coldplug time, and ensuring we pass that from the dracut systemd
to the deserialized main pid.  But what I hit doing that was from
dracut-systemd's perspective it is /sysroot/var, and not /var.  Would
need to do some sort of device/inode pairing to fix up paths after a
potential switch-root.





More information about the systemd-devel mailing list