summaryrefslogtreecommitdiff
path: root/Config.in
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2012-01-12 19:36:25 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2012-01-15 11:03:39 +0100
commit6eb624f2ea2133cfb5d8f9a6e8633c386a75a8f9 (patch)
tree007eda4c1803042ceff04eed912107b7ead61480 /Config.in
parent361b9c3c78c1b51c2fc0c496b99ce99d7be423f2 (diff)
Allow leaving /etc as untouched as possible
For customized setups, it's hard to control what files get installed into /etc since in addition to the base-files package, any other package may install a sample config. When two packages provide the same file, which one of them makes it into the image depends on the order of them being installed. Solving this problem is not as trivial, as there are packages which must be allowed to install stuff into /etc. Best examples are base-files and ca-certificates. This patch solves the problem by adding another PKG_template flag "force_etc", which one can define in order to override the as well new Config.in symbol "ADK_LEAVE_ETC_ALONE".
Diffstat (limited to 'Config.in')
-rw-r--r--Config.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/Config.in b/Config.in
index 1b3868d6b..8febb3313 100644
--- a/Config.in
+++ b/Config.in
@@ -45,9 +45,26 @@ endmenu
menu "Package selection"
depends on !ADK_CHOOSE_TARGET_ARCH && !ADK_CHOOSE_TARGET_KERNEL && !ADK_CHOOSE_TARGET_SYSTEM
+config ADK_LEAVE_ETC_ALONE
+ boolean "do not install anything into /etc"
+ default n
+ help
+ Enabling this option will prevent the ADK from installing anything
+ into /etc. This is useful for highly customised setups with custom
+ base-files packages.
+
+ Package Makefiles can override this setting by passing "force_etc" to
+ the package-template. to a non-empty value. This is useful for
+ packages traditionally installing non-config stuff into /etc, like
+ e.g. ca-certificates.
+
+ Note that without further customisation, turning this option
+ on will almost certainly render the resulting system unusable.
+
config ADK_INSTALL_PACKAGE_INIT_SCRIPTS
boolean "ship custom init-scripts along with packages"
default y
+ depends on !ADK_LEAVE_ETC_ALONE
help
Turning this option to false will prevent the ADK from
installing init-scripts (i.e. files in /etc/init.d) for
@@ -59,6 +76,7 @@ config ADK_INSTALL_PACKAGE_INIT_SCRIPTS
config ADK_INSTALL_PACKAGE_NETWORK_SCRIPTS
boolean "ship custom network-scripts along with packages"
default y
+ depends on !ADK_LEAVE_ETC_ALONE
help
Turning this option to false will prevent the ADK from
installing network-scripts (i.e. files in /etc/network/) for