Merge pull request #8 from Feandil/debugfs

Fix debugfs mount check
This commit is contained in:
Stéphane Lesimple 2018-01-08 12:19:23 +01:00 committed by GitHub
commit 4406910bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ if [ "$insmod_msr" = 1 ]; then
fi
/bin/echo -n "* Kernel support for IBRS: "
if [ -e /sys/kernel/debug/sched_features ]; then
if [ ! -e /sys/kernel/debug/sched_features ]; then
# try to mount the debugfs hierarchy ourselves and remember it to umount afterwards
mount -t debugfs debugfs /sys/kernel/debug 2>/dev/null && mounted_debugfs=1
fi