From: Mike Looijmans Date: Wed, 22 Feb 2017 14:32:09 +0000 (+0100) Subject: initscripts/sysfs.sh: mount configfs if present X-Git-Tag: uninative-1.5~139 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=4f52130475d026c32f0380d301f56f6fa3df7ac9;p=openembedded-core.git 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 Signed-off-by: Ross Burton --- 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