package/dhcp: create tmpfiles.d directory
PATCH 1/2 package/dhcp: create tmpfiles.d directory
dhcp.mk try to create dhcp.conf in a non-existant directory.
Fixes:
http://autobuild.buildroot.net/results/40e/40e48f74b586ce380766cf31473932e43090671e
--- package/dhcp/dhcp.mk | 1 + 1 file changed, 1 insertion(+)
package/dhcp/dhcp.mk +1 -0
@@ -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 - - - - -" >> \
Signature · 1 line
2.9.4
PATCH 2/2 package/dhcp: dhcp server: select systemd tmpfile support when systemd is used
tmpfile support is optional in systemd but the dhcp server install it's config file in $(TARGET_DIR)/usr/lib/tmpfiles.d directory when systemd is used as init system.
So it seems that dhcp server require tmpfile support for systemd based system.
--- package/dhcp/Config.in | 1 + 1 file changed, 1 insertion(+)
package/dhcp/Config.in +1 -0
@@ -12,6 +12,7 @@ if BR2_PACKAGE_DHCP config BR2_PACKAGE_DHCP_SERVER bool "dhcp server" + select BR2_PACKAGE_SYSTEMD_TMPFILES if BR2_PACKAGE_SYSTEMD help DHCP server from the ISC DHCP distribution.
Signature · 1 line
2.9.4
PATCH 2/2 package/dhcp: dhcp server: select systemd tmpfile support when systemd is used
Hello,
Quoted 4 lines · Romain Naour
tmpfile support is optional in systemd but the dhcp server install it's config file in $(TARGET_DIR)/usr/lib/tmpfiles.d directory when systemd is used as init system.
Quoted 8 lines
So it seems that dhcp server require tmpfile support for systemd based system.
Signed-off-by Romain Naour <[email protected]>Cc Vicente Olivert Riera <[email protected]>--- package/dhcp/Config.in | 1 + 1 file changed, 1 insertion(+)
I'm not a big expert in systemd stuff, but nobody else complained for almost a month, so I've applied your patch. Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 2/2 package/dhcp: dhcp server: select systemd tmpfile support when systemd is used
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Hello,
Quoted 7 lines · Romain Naour
tmpfile support is optional in systemd but the dhcp server install it's config file in $(TARGET_DIR)/usr/lib/tmpfiles.d directory when systemd is used as init system.
So it seems that dhcp server require tmpfile support for systemd based system.
Quoted 8 lines
Quoted 5 lines
Signed-off-by Romain Naour <[email protected]>Cc Vicente Olivert Riera <[email protected]>---
package/dhcp/Config.in | 1 +1 file changed, 1 insertion(+)I'm not a big expert in systemd stuff, but nobody else complained for almost a month, so I've applied your patch. Thanks!
Committed to 2017.02.x and 2017.05.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/2 package/dhcp: create tmpfiles.d directory
In reply to Romain NaourAm Sat, 27 May 2017 00:13:47 +0200 schrieb Romain Naour:
Quoted 4 lines
dhcp.mk try to create dhcp.conf in a non-existant directory.
results/40e/40e48f74b586ce380766cf31473932e43090671e
Quoted 5 lines
Signed-off-by: Romain Naour
<[email protected]> ---package/dhcp/dhcp.mk | 1 + 1 file changed, 1 insertion(+)
(compile tested)
Thomas Petazzoni
AppliedPATCH 1/2 package/dhcp: create tmpfiles.d directory
In reply to Romain NaourHello,
Quoted 9 lines · Romain Naour
dhcp.mk try to create dhcp.conf in a non-existant directory.
Fixes:
http://autobuild.buildroot.net/results/40e/40e48f74b586ce380766cf31473932e43090671eSigned-off-by Romain Naour <[email protected]>--- package/dhcp/dhcp.mk | 1 + 1 file changed, 1 insertion(+)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/2 package/dhcp: create tmpfiles.d directory
In reply to Romain NaourQuoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Romain" == Romain Naour <[email protected]> writes:
dhcp.mk try to create dhcp.conf in a non-existant directory. Fixes:
http://autobuild.buildroot.net/results/40e/40e48f74b586ce380766cf31473932e43090671eSigned-off-by Romain Naour <[email protected]>
Committed to 2017.02.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard