]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
initscripts/sysfs.sh: mount debugfs if present
authorTom Zanussi <tom.zanussi@intel.com>
Fri, 21 Sep 2012 19:11:45 +0000 (14:11 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Sep 2012 10:30:37 +0000 (11:30 +0100)
debugfs is another kernel virtual file system that should be mounted
if configured, so if it's configured into the kernel, mount it.

(From OE-Core rev: 55c4d3c55e4c3a7c2cda6d006cf7b78567bd3298)

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh
meta/recipes-core/initscripts/initscripts_1.0.bb

index bd87dcddd24e6a53457c92575a29fd91dc3f8335..0cfe76e2305f731f89ccde4342e79cc6200f93f6 100644 (file)
@@ -17,3 +17,7 @@ fi
 if [ -e /sys ] && grep -q sysfs /proc/filesystems && ! [ -e /sys/class ]; then
   mount -t sysfs sysfs /sys
 fi
+
+if [ -e /sys/kernel/debug ] && grep -q debugfs /proc/filesystems; then
+  mount -t debugfs debugfs /sys/kernel/debug
+fi
index b741b61f37912073d341220f0dfe0d88b7d856c7..d25838b8ec23532b2ce49ab510cfe89cfc619232 100644 (file)
@@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip
 SECTION = "base"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
-PR = "r136"
+PR = "r137"
 
 INHIBIT_DEFAULT_DEPS = "1"