base-files: mount configfs during boot if available
authorPetr Štetiar <ynezz@true.cz>
Tue, 25 Feb 2020 16:44:18 +0000 (17:44 +0100)
committerPetr Štetiar <ynezz@true.cz>
Wed, 26 Feb 2020 10:02:39 +0000 (11:02 +0100)
Signed-off-by: Petr Štetiar <ynezz@true.cz>
package/base-files/files/etc/init.d/boot

index 21aecde615db7874d5faa76f17bdf0c771c2044e..581b97fd9d487cb654989faea18183904be6039f 100755 (executable)
@@ -35,6 +35,7 @@ boot() {
        touch /tmp/resolv.conf.d/resolv.conf.auto
        ln -sf /tmp/resolv.conf.d/resolv.conf.auto /tmp/resolv.conf
        grep -q debugfs /proc/filesystems && /bin/mount -o noatime -t debugfs debugfs /sys/kernel/debug
+       grep -q configfs /proc/filesystems && /bin/mount -t configfs configfs /sys/kernel/config
        [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
 
        /sbin/kmodloader
@@ -46,7 +47,7 @@ boot() {
 
        /bin/config_generate
        uci_apply_defaults
-       
+
        # temporary hack until configd exists
        /sbin/reload_config
 }