[source] base-files: create /etc/config/ directory

LEDE Commits lede-commits at lists.infradead.org
Sun Oct 1 01:53:02 PDT 2017


hauke pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/b8357e87d7cbc73e19073b4b8cd749e46e6b7fc2

commit b8357e87d7cbc73e19073b4b8cd749e46e6b7fc2
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Sat Sep 30 13:50:44 2017 +0200

    base-files: create /etc/config/ directory
    
    The /bin/config_generate script and some other scripts are assuming the
    /etc/config directory exists in the image. This is true in case for
    example the package firewall, dropbear or dnsmasq are included, which
    are adding the files under /etc/config/. Without any of these package
    the system will not boot up fully because the /etc/config/ directory is
    missing and some init scripts just fail.
    
    Make sure all images with the base-files contain a /etc/config/
    directory.
    
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    Acked-by: John Crispin <john at phrozen.org>
---
 package/base-files/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 18ebe60..fdeda95 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -138,6 +138,7 @@ define Package/base-files/install
 
 	mkdir -p $(1)/CONTROL
 	mkdir -p $(1)/dev
+	mkdir -p $(1)/etc/config
 	mkdir -p $(1)/etc/crontabs
 	mkdir -p $(1)/etc/rc.d
 	mkdir -p $(1)/overlay



More information about the lede-commits mailing list