chiark / gitweb /
unit: use weaker dependencies between mount and device units in --user mode
authorLennart Poettering <lennart@poettering.net>
Wed, 25 Feb 2015 21:05:14 +0000 (22:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 25 Feb 2015 21:06:54 +0000 (22:06 +0100)
commit5bd4b173605142c7be493aa4d958ebaef21f421d
tree34f20cfb3bcdbb839ff9fea8ce7b831432d08a67
parentc6c8f6e218995852350e5e35c080dec788c42c3f
unit: use weaker dependencies between mount and device units in --user mode

When running in user mode unmounting of mount units when a device
vanishes is unlikely to work, and even if it would work is already done
by PID 1 anyway. HEnce, when creating implicit dependencies between
mount units and their backing devices, created a Wants= type dependency
in --user mode, but leave a BindsTo= dependency in --system mode.
src/core/unit.c