Revert securitfs change
Commit 5e60145 use findmnt with "--source" or "--target" broke
mounting securityfs. This patch reverts only the securityfs
portion of the patch.
master
parent
41ac16b26f
commit
4f50a9bfb1
|
|
@ -3,6 +3,6 @@
|
||||||
SECURITYFSDIR="/sys/kernel/security"
|
SECURITYFSDIR="/sys/kernel/security"
|
||||||
export SECURITYFSDIR
|
export SECURITYFSDIR
|
||||||
|
|
||||||
if ! findmnt --target "${SECURITYFSDIR}" >/dev/null 2>&1; then
|
if ! findmnt "${SECURITYFSDIR}" >/dev/null 2>&1; then
|
||||||
mount -t securityfs -o nosuid,noexec,nodev securityfs ${SECURITYFSDIR} >/dev/null 2>&1
|
mount -t securityfs -o nosuid,noexec,nodev securityfs ${SECURITYFSDIR} >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue