summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorMike Looijmans <mike.looijmans@topic.nl>2017-02-22 15:32:09 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-01 12:54:20 +0000
commit4f52130475d026c32f0380d301f56f6fa3df7ac9 (patch)
treea0622c848ef7fcc26ba5329bd4660396b3213818 /meta
parentb33e644da0d8b6edb97257b16430b545c289883a (diff)
downloadopenembedded-core-4f52130475d026c32f0380d301f56f6fa3df7ac9.tar.gz
openembedded-core-4f52130475d026c32f0380d301f56f6fa3df7ac9.tar.bz2
openembedded-core-4f52130475d026c32f0380d301f56f6fa3df7ac9.zip
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. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh4
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 0a52c90dac..f5b5b9904b 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