]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
99base/init: mount securityfs with source "securityfs" instead of dest
authorHarald Hoyer <harald@redhat.com>
Tue, 20 Sep 2011 08:10:29 +0000 (10:10 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 20 Sep 2011 08:10:29 +0000 (10:10 +0200)
modules.d/99base/init

index 4f5981871bd68570576691252954b3f96fe24573..fa808caf0398b556cdfdc20f42a06dacf2d940ee 100755 (executable)
@@ -89,7 +89,7 @@ RD_DEBUG=""
 SECURITYFSDIR="/sys/kernel/security"
 export SECURITYFSDIR
 if ! ismounted "${SECURITYFSDIR}"; then
-    mount -t securityfs -o nosuid,noexec,nodev ${SECURITYFSDIR} ${SECURITYFSDIR} >/dev/null 2>&1
+    mount -t securityfs -o nosuid,noexec,nodev securityfs ${SECURITYFSDIR} >/dev/null 2>&1
 fi
 
 if [ -x /lib/systemd/systemd-timestamp ]; then