[systemd-devel] systemd-shutdown static linking (was: Please proof-read: ...)

Umut Tezduyar umut at tezduyar.com
Tue Jun 11 01:07:35 PDT 2013


Hi,

Those 2 lines were added on 89b1d5e0e49d3b3501e5f3aadcad712290bcd9bf and
the commit log explains why we needed them. "/" can be treated as special
case and excluded.

Thanks.


On Tue, Jun 11, 2013 at 9:19 AM, Ross Lagerwall <rosslagerwall at gmail.com>wrote:

> On Mon, Jun 10, 2013 at 08:30:40PM +0200, Lennart Poettering wrote:
> > Hmm, this is certainly weird. normally -.mount should not have any such
> > conflicts. I really wonder where you got those from... What is the
> > contents of /run/systemd/generator/-.mount for you?
> >
>
> AFAICT, mount_load_proc_self_mountinfo is called early in the boot
> process and it calls mount_add_one for each filesystem in
> /proc/self/mounts, including /.
> If a unit does not exist already, a new unit is created and
> the following lines are called (in mount_add_one):
>
> r = unit_add_dependency_by_name(u, UNIT_BEFORE, SPECIAL_LOCAL_FS_TARGET,
> NULL, true);
> if (r < 0)
>         goto fail;
>
> r = unit_add_dependency_by_name(u, UNIT_CONFLICTS, SPECIAL_UMOUNT_TARGET,
> NULL, true);
> if (r < 0)
>         goto fail;
>
> While it would be easy to make the conflicts line above conditional on
> the mount point not being /, I'm not sure how this interacts with
> mount_load which fills in a whole bunch of stuff and
> mount_add_default_dependencies which adds a conflict with umount.target
> so long as the mount point is not /.
>
> Regards
> --
> Ross Lagerwall
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130611/d7348d9f/attachment-0001.html>


More information about the systemd-devel mailing list