summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initscripts
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 23:27:08 +0000
commitabda45bb2aa4e2791b035a1e310fab47a0f90d22 (patch)
treea1d2a41fdd3102c169908eb43e0ec4ee5db66ae6 /meta/recipes-core/initscripts
parent033b9f70d63698cc46e62611a50b6ee8f2a2c63d (diff)
downloadpoky-abda45bb2aa4e2791b035a1e310fab47a0f90d22.tar.gz
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>
Diffstat (limited to 'meta/recipes-core/initscripts')
-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
22 mount -t debugfs debugfs /sys/kernel/debug 22 mount -t debugfs debugfs /sys/kernel/debug
23fi 23fi
24 24
25if [ -e /sys/kernel/config ] && grep -q configfs /proc/filesystems; then
26 mount -t configfs configfs /sys/kernel/config
27fi
28
25if ! [ -e /dev/zero ] && [ -e /dev ] && grep -q devtmpfs /proc/filesystems; then 29if ! [ -e /dev/zero ] && [ -e /dev ] && grep -q devtmpfs /proc/filesystems; then
26 mount -n -t devtmpfs devtmpfs /dev 30 mount -n -t devtmpfs devtmpfs /dev
27fi 31fi