]> code.ossystems Code Review - openembedded-core.git/commitdiff
initscripts/sysfs.sh: mount configfs if present
authorMike Looijmans <mike.looijmans@topic.nl>
Wed, 22 Feb 2017 14:32:09 +0000 (15:32 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Mar 2017 12:54:20 +0000 (12:54 +0000)
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.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh

index 0a52c90dacd0a816a3b703d0eb9e840cca720ded..f5b5b9904bfeef5c23815e9a8dc5d2e3f3925574 100644 (file)
@@ -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