[gnome-continuous-yocto/gnomeostree-3.28-rocko: 4827/8267] initscripts/sysfs.sh: mount configfs if present



commit abda45bb2aa4e2791b035a1e310fab47a0f90d22
Author: Mike Looijmans <mike looijmans topic nl>
Date:   Wed Feb 22 15:32:09 2017 +0100

    initscripts/sysfs.sh: mount configfs if present
    
    configfs is another kernel virtual file system that should be mounted
    if configured, so if it's configured into the kernel, mount it. It is
    used to configure e.g. USB gadget mode and devicetree overlays.
    
    (From OE-Core rev: 4f52130475d026c32f0380d301f56f6fa3df7ac9)
    
    Signed-off-by: Mike Looijmans <mike looijmans topic nl>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 .../initscripts/initscripts-1.0/sysfs.sh           |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh 
b/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh
index 0a52c90..f5b5b99 100644
--- a/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh
@@ -22,6 +22,10 @@ if [ -e /sys/kernel/debug ] && grep -q debugfs /proc/filesystems; then
   mount -t debugfs debugfs /sys/kernel/debug
 fi
 
+if [ -e /sys/kernel/config ] && grep -q configfs /proc/filesystems; then
+  mount -t configfs configfs /sys/kernel/config
+fi
+
 if ! [ -e /dev/zero ] && [ -e /dev ] && grep -q devtmpfs /proc/filesystems; then
   mount -n -t devtmpfs devtmpfs /dev
 fi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]