Skip to contentSkip to conversation

dnsmasq: create runtime directory

PATCH New Daniel Mack 2 participants 2 messages Dec 2, 2011 – Dec 6, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dnsmasq: create runtime directory

$(TARGET_DIR)/var/lib/misc/ is the location where dnsmasq stores its lease files. Create it to make the daemon work.

---
 package/dnsmasq/dnsmasq.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
package/dnsmasq/dnsmasq.mk +1 -0
index 0f8db9d..fc43abd 100644
@@ -57,6 +57,7 @@ endef
 
 define DNSMASQ_INSTALL_TARGET_CMDS
 	$(DNSMASQ_MAKE_ENV) $(MAKE) -C $(@D) $(DNSMASQ_MAKE_OPT) install
+	mkdir -p $(TARGET_DIR)/var/lib/misc/
 endef
 
 define DNSMASQ_UNINSTALL_TARGET_CMDS
Signature · 1 line
1.7.7.3
#1 lore raw

PATCH 1/1 dnsmasq: create runtime directory

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Daniel" == Daniel Mack <[email protected]> writes:

Daniel> $(TARGET_DIR)/var/lib/misc/ is the location where dnsmasq stores its Daniel> lease files. Create it to make the daemon work.

Committed, thanks. We should probably make /var/lib/misc a symlink to /tmp for the default fs skeleton so stuff like this works with readonly fs, but your patch doesn't hurt.

Signature · 1 line
Bye, Peter Korsgaard