<div dir="ltr">Hi,<div><br></div><div style>Those 2 lines were added on 89b1d5e0e49d3b3501e5f3aadcad712290bcd9bf and the commit log explains why we needed them. "/" can be treated as special case and excluded.</div>
<div style><br></div><div style>Thanks.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 11, 2013 at 9:19 AM, Ross Lagerwall <span dir="ltr"><<a href="mailto:rosslagerwall@gmail.com" target="_blank">rosslagerwall@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Mon, Jun 10, 2013 at 08:30:40PM +0200, Lennart Poettering wrote:<br>
</div><div class="im">> Hmm, this is certainly weird. normally -.mount should not have any such<br>
> conflicts. I really wonder where you got those from... What is the<br>
> contents of /run/systemd/generator/-.mount for you?<br>
><br>
<br>
</div>AFAICT, mount_load_proc_self_mountinfo is called early in the boot<br>
process and it calls mount_add_one for each filesystem in<br>
/proc/self/mounts, including /.<br>
If a unit does not exist already, a new unit is created and<br>
the following lines are called (in mount_add_one):<br>
<br>
r = unit_add_dependency_by_name(u, UNIT_BEFORE, SPECIAL_LOCAL_FS_TARGET, NULL, true);<br>
if (r < 0)<br>
goto fail;<br>
<br>
r = unit_add_dependency_by_name(u, UNIT_CONFLICTS, SPECIAL_UMOUNT_TARGET, NULL, true);<br>
if (r < 0)<br>
goto fail;<br>
<br>
While it would be easy to make the conflicts line above conditional on<br>
the mount point not being /, I'm not sure how this interacts with<br>
mount_load which fills in a whole bunch of stuff and<br>
mount_add_default_dependencies which adds a conflict with umount.target<br>
so long as the mount point is not /.<br>
<br>
Regards<br>
<span class="HOEnZb"><font color="#888888">--<br>
Ross Lagerwall<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</div></div></blockquote></div><br></div>