Signed-off-by: Juergen Borleis <[email protected]>
---
rules/dnsmasq.in | 9 ++++++---
rules/dnsmasq.make | 5 +++--
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/rules/dnsmasq.in b/rules/dnsmasq.in
index 65f68f738..aec63dd0f 100644
--- a/rules/dnsmasq.in
+++ b/rules/dnsmasq.in
@@ -5,9 +5,9 @@
menuconfig DNSMASQ
tristate
prompt "dnsmasq "
- select DBUS if DNSMASQ_DBUS
- select LUA if DNSMASQ_SCRIPT_LUA
- select ROOTFS_VAR_LIB
+ select DBUS if DNSMASQ_DBUS
+ select LUA if DNSMASQ_SCRIPT_LUA
+ select ROOTFS_VAR_LIB if DNSMASQ_DHCP && RUNTIME
help
A small caching DNS proxy and DHCP server.
@@ -23,6 +23,9 @@ menuconfig DNSMASQ
Note: In order to make dnsmasq work as DHCP, you have to enable
the following kernel features: FIXME
+ Note: on a read-only root filesystem this package still requires a
+ writable '/var/lib' for its leases database (DHCP feature enabled).
+
if DNSMASQ
comment "build options ---"
diff --git a/rules/dnsmasq.make b/rules/dnsmasq.make
index 861936329..d9a134cdf 100644
--- a/rules/dnsmasq.make
+++ b/rules/dnsmasq.make
@@ -104,9 +104,10 @@ endif
@$(call install_alternative, dnsmasq, 0, 0, 0644, /etc/dnsmasq.conf)
-# for the 'dnsmasq.leases' file
+ifdef PTXCONF_DNSMASQ_DHCP
+# # for the 'dnsmasq.leases' file
@$(call install_copy, dnsmasq, 0, 0, 0755, /var/lib/misc)
-
+endif
@$(call install_finish, dnsmasq)
@$(call touch)
--
2.20.1
_______________________________________________
ptxdist mailing list
[email protected]