package/dhcp: create tmpfiles.d directory
authorRomain Naour <romain.naour@gmail.com>
Fri, 26 May 2017 22:13:47 +0000 (00:13 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 27 May 2017 15:18:20 +0000 (17:18 +0200)
dhcp.mk tries to create dhcp.conf in a non-existant directory.

Fixes:
http://autobuild.buildroot.net/results/40e/40e48f74b586ce380766cf31473932e43090671e

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Tested-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/dhcp/dhcp.mk

index 4d2cb0635282f15cf7e99c076f8965323cc0a041..45cae087aae0c90c241cedb5f6a4c9ec67e7f1b1 100644 (file)
@@ -102,6 +102,7 @@ define DHCP_INSTALL_INIT_SYSTEMD
        ln -sf ../../../../usr/lib/systemd/system/dhcpd.service \
                $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/dhcpd.service
 
+       mkdir -p $(TARGET_DIR)/usr/lib/tmpfiles.d
        echo "d /var/lib/dhcp 0755 - - - -" > \
                $(TARGET_DIR)/usr/lib/tmpfiles.d/dhcpd.conf
        echo "f /var/lib/dhcp/dhcpd.leases - - - - -" >> \