mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
units: drop automount unit for /sys/kernel/security
Since securityfs cannot be build as module there's little value in having an on-demand autofs mount point for it.
This commit is contained in:
parent
e124e7a4a1
commit
77f81d8b30
@ -363,7 +363,6 @@ dist_systemunit_DATA = \
|
|||||||
units/dev-mqueue.mount \
|
units/dev-mqueue.mount \
|
||||||
units/sys-kernel-config.mount \
|
units/sys-kernel-config.mount \
|
||||||
units/sys-kernel-debug.mount \
|
units/sys-kernel-debug.mount \
|
||||||
units/sys-kernel-security.automount \
|
|
||||||
units/sys-kernel-security.mount \
|
units/sys-kernel-security.mount \
|
||||||
units/var-run.mount \
|
units/var-run.mount \
|
||||||
units/media.mount \
|
units/media.mount \
|
||||||
@ -1842,7 +1841,7 @@ endif
|
|||||||
dev-mqueue.automount \
|
dev-mqueue.automount \
|
||||||
sys-kernel-config.mount \
|
sys-kernel-config.mount \
|
||||||
sys-kernel-debug.mount \
|
sys-kernel-debug.mount \
|
||||||
sys-kernel-security.automount \
|
sys-kernel-security.mount \
|
||||||
systemd-vconsole-setup.service \
|
systemd-vconsole-setup.service \
|
||||||
systemd-modules-load.service \
|
systemd-modules-load.service \
|
||||||
systemd-random-seed-load.service \
|
systemd-random-seed-load.service \
|
||||||
@ -1855,7 +1854,7 @@ endif
|
|||||||
$(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
|
$(LN_S) ../dev-mqueue.automount dev-mqueue.automount && \
|
||||||
$(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \
|
$(LN_S) ../sys-kernel-config.mount sys-kernel-config.mount && \
|
||||||
$(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \
|
$(LN_S) ../sys-kernel-debug.mount sys-kernel-debug.mount && \
|
||||||
$(LN_S) ../sys-kernel-security.automount sys-kernel-security.automount && \
|
$(LN_S) ../sys-kernel-security.mount sys-kernel-security.mount && \
|
||||||
$(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
|
$(LN_S) ../systemd-vconsole-setup.service systemd-vconsole-setup.service && \
|
||||||
$(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
|
$(LN_S) ../systemd-modules-load.service systemd-modules-load.service && \
|
||||||
$(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
|
$(LN_S) ../systemd-random-seed-load.service systemd-random-seed-load.service && \
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
# This file is part of systemd.
|
|
||||||
#
|
|
||||||
# systemd is free software; you can redistribute it and/or modify it
|
|
||||||
# under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; either version 2 of the License, or
|
|
||||||
# (at your option) any later version.
|
|
||||||
|
|
||||||
[Unit]
|
|
||||||
Description=Security File System Automount Point
|
|
||||||
DefaultDependencies=no
|
|
||||||
Before=sysinit.target
|
|
||||||
ConditionPathExists=/sys/kernel/security
|
|
||||||
ConditionPathIsMountPoint=!/sys/kernel/security
|
|
||||||
|
|
||||||
[Automount]
|
|
||||||
Where=/sys/kernel/security
|
|
@ -8,6 +8,9 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Security File System
|
Description=Security File System
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
|
ConditionPathExists=/sys/kernel/security
|
||||||
|
ConditionPathIsMountPoint=!/sys/kernel/security
|
||||||
|
Before=sysinit.target
|
||||||
|
|
||||||
[Mount]
|
[Mount]
|
||||||
What=securityfs
|
What=securityfs
|
||||||
|
Loading…
Reference in New Issue
Block a user