Patchwork [1/1] initscripts/sysfs.sh: mount debugfs if present

login
register
mail settings
Submitter Tom Zanussi
Date Sept. 21, 2012, 7:11 p.m.
Message ID <96ec94413cd58a08aa4277ac8a863dea4b0e8c55.1348254442.git.tom.zanussi@intel.com>
Download mbox | patch
Permalink /patch/37021/
State Accepted
Commit 55c4d3c55e4c3a7c2cda6d006cf7b78567bd3298
Headers show

Comments

Tom Zanussi - Sept. 21, 2012, 7:11 p.m.
From: Tom Zanussi <tom.zanussi@intel.com>

debugfs is another kernel virtual file system that should be mounted
if configured, so if it's configured into the kernel, mount it.

Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
---
 meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh | 4 ++++
 meta/recipes-core/initscripts/initscripts_1.0.bb       | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)
Richard Purdie - Sept. 24, 2012, 10:26 a.m.
On Fri, 2012-09-21 at 14:11 -0500, tom.zanussi@intel.com wrote:
> From: Tom Zanussi <tom.zanussi@intel.com>
> 
> debugfs is another kernel virtual file system that should be mounted
> if configured, so if it's configured into the kernel, mount it.
> 
> Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
> ---
>  meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh | 4 ++++
>  meta/recipes-core/initscripts/initscripts_1.0.bb       | 2 +-
>  2 files changed, 5 insertions(+), 1 deletion(-)

Merged to master, thanks.

Richard

Patch

diff --git a/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh
index bd87dcd..0cfe76e 100644
--- a/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh
@@ -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
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index b741b61..d25838b 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -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"