]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Revert securitfs change
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Mon, 27 Apr 2015 22:24:14 +0000 (18:24 -0400)
committerHarald Hoyer <harald@redhat.com>
Mon, 3 Aug 2015 10:36:05 +0000 (12:36 +0200)
Commit 5e60145 use findmnt with "--source" or "--target" broke
mounting securityfs.  This patch reverts only the securityfs
portion of the patch.

modules.d/96securityfs/securityfs.sh

index 8ccb151a024ccd02f0c49c775e4ea3689d0f4b02..8e57571d8a9adfc5fc9a03b491c8d2d1e5b8b379 100755 (executable)
@@ -3,6 +3,6 @@
 SECURITYFSDIR="/sys/kernel/security"
 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
 fi