Skip to contentSkip to conversation

package/dhcp: create tmpfiles.d directory

PATCH New Romain Naour 4 participants 7 messages May 26, 2017 – Jun 26, 2017

lore
Share & tools
lore
#0 lore raw

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
index 4d2cb06..45cae08 100644
@@ -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
#1 lore raw

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.

Cc Vicente Olivert Riera <[email protected]>
---
 package/dhcp/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/dhcp/Config.in +1 -0
index d09256a..5340830 100644
@@ -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
#2 lore raw

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.

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
#3 lore raw

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
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
#4 lore raw

PATCH 1/2 package/dhcp: create tmpfiles.d directory

In reply to Romain Naour

Am 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.

Fixes:
http://autobuild.buildroot.net/

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)

#5 lore raw

PATCH 1/2 package/dhcp: create tmpfiles.d directory

In reply to Romain Naour

Hello,

Quoted 9 lines · Romain Naour

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(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#6 lore raw

PATCH 1/2 package/dhcp: create tmpfiles.d directory

In reply to Romain Naour
Quoted 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/40e48f74b586ce380766cf31473932e43090671e

Committed to 2017.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard