mirror of
https://github.com/systemd/systemd
synced 2024-10-04 15:21:01 +00:00
units: restore sysfs conditions in sys-fs-fuse-connections.mount and sys-kernel-config.mount
Commit42cc2855ba
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 for42cc2855ba
.
This commit is contained in:
parent
db39a62784
commit
07ccf434e7
|
@ -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
|
||||
|
|
|
@ -12,6 +12,7 @@ Description=Kernel Configuration File System
|
|||
Documentation=https://www.kernel.org/doc/Documentation/filesystems/configfs/configfs.txt
|
||||
Documentation=https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
|
||||
DefaultDependencies=no
|
||||
ConditionPathExists=/sys/kernel/config
|
||||
ConditionCapability=CAP_SYS_RAWIO
|
||||
Before=sysinit.target
|
||||
|
||||
|
|
Loading…
Reference in a new issue