[systemd-devel] [PATCH] core/mount: only add dependencies to active units for dynamic mounts [was: Re: unit: When stopping due to BindsTo=, log which unit caused it]

Martin Pitt martin.pitt at ubuntu.com
Thu Feb 26 12:59:24 PST 2015


Hello again,

Martin Pitt [2015-02-26 21:40 +0100]:
> Ah, then I misunderstood the problem, and the patch will most probably
> not work.

Sorry, that was too fast. It actually should work. On second thought,
it doesn't matter if there's systemd in the initrd or not; if it gets
stopped before pivoting root, and a new one gets started in the new
root, that's exactly the same behavior as having no systemd in the
initrd.

> Most probably your initramfs has systemd, but it gets stopped and the
> "real" root file system gets another systemd instance after pivoting.
> The mount is still in /proc/mounts, but due to the restarting systemd
> all of its units go away. Is that the case?

Right, and I even wrote that here.. :-)

So, this patch ought to work. Confirmation appreciated!

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


More information about the systemd-devel mailing list