Skip to contentSkip to conversation

initscripts/sysfs.sh: mount configfs if present

PATCH New Mike Looijmans 1 participant 1 message Feb 22, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh | 4 ++++
 1 file changed, 4 insertions(+)
meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh +4 -0
index 0a52c90..f5b5b99 100644
@@ -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
Signature · 1 line
1.9.1