diff options
author | Mike Looijmans <mike.looijmans@topic.nl> | 2017-02-22 15:32:09 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-01 23:27:08 +0000 |
commit | abda45bb2aa4e2791b035a1e310fab47a0f90d22 (patch) | |
tree | a1d2a41fdd3102c169908eb43e0ec4ee5db66ae6 /meta/recipes-core/initscripts | |
parent | 033b9f70d63698cc46e62611a50b6ee8f2a2c63d (diff) | |
download | poky-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.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 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 |
23 | fi | 23 | fi |
24 | 24 | ||
25 | if [ -e /sys/kernel/config ] && grep -q configfs /proc/filesystems; then | ||
26 | mount -t configfs configfs /sys/kernel/config | ||
27 | fi | ||
28 | |||
25 | if ! [ -e /dev/zero ] && [ -e /dev ] && grep -q devtmpfs /proc/filesystems; then | 29 | if ! [ -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 |
27 | fi | 31 | fi |