diff options
author | Franck Bui <fbui@suse.com> | 2020-11-20 11:52:36 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-11-20 17:10:17 +0100 |
commit | 07ccf434e77b17b20d773ce8b2637083cd4fdafc (patch) | |
tree | 3de8db3391334744297b03669c29ae02805773e0 /units/sys-fs-fuse-connections.mount | |
parent | core/mount: mount_start() may be called during the state is MOUNT_MOUNTING_DONE (diff) | |
download | systemd-07ccf434e77b17b20d773ce8b2637083cd4fdafc.tar.xz systemd-07ccf434e77b17b20d773ce8b2637083cd4fdafc.zip |
units: restore sysfs conditions in sys-fs-fuse-connections.mount and sys-kernel-config.mount
Commit 42cc2855ba2fe4c6f5d incorrectly removed the condition on sysfs in both
sys-fs-fuse-connections.mount and sys-kernel-config.mount. However there are
still needed in case modprobe of one of these modules is intentionally skipped
(due to lack of privs for example).
This patch restores the 2 conditions which should be safe for the common case,
since all conditions are only checked after all deps ordered before are
complete.
Follow-up for 42cc2855ba2fe4c6f5dc863507a1c843611350a0.
Diffstat (limited to 'units/sys-fs-fuse-connections.mount')
-rw-r--r-- | units/sys-fs-fuse-connections.mount | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/units/sys-fs-fuse-connections.mount b/units/sys-fs-fuse-connections.mount index b649a1ed19..ca48fd5f4f 100644 --- a/units/sys-fs-fuse-connections.mount +++ b/units/sys-fs-fuse-connections.mount @@ -12,6 +12,7 @@ Description=FUSE Control File System Documentation=https://www.kernel.org/doc/Documentation/filesystems/fuse.txt Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems DefaultDependencies=no +ConditionPathExists=/sys/fs/fuse/connections ConditionCapability=CAP_SYS_ADMIN ConditionVirtualization=!private-users Before=sysinit.target |