diff options
author | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2018-05-03 12:40:49 -0300 |
---|---|---|
committer | Ricardo Salveti <ricardo@opensourcefoundries.com> | 2018-05-03 15:37:32 -0300 |
commit | 020564f51781fa96cfe72f73d09dc1d72b03cc57 (patch) | |
tree | 9f507c55cc5fad61a6f21ce1cc4a595df28bb2a3 /recipes-connectivity | |
parent | 50add5753887f728712ed8c6e2d0763201ba1582 (diff) |
dhcp: create tmpfiles for /var/lib/dhcp
Create systemd tmpfiles conf for both /var/lib/dhcp and
/var/lib/dhcp/dhcpd.leases, as they might not be available during boot
in case /var gets erased or mounted as tmpfs.
Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
Diffstat (limited to 'recipes-connectivity')
-rw-r--r-- | recipes-connectivity/dhcp/dhcp_%.bbappend | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-connectivity/dhcp/dhcp_%.bbappend b/recipes-connectivity/dhcp/dhcp_%.bbappend new file mode 100644 index 0000000..824705d --- /dev/null +++ b/recipes-connectivity/dhcp/dhcp_%.bbappend @@ -0,0 +1,7 @@ +do_install_append() { + install -d ${D}${exec_prefix}/lib/tmpfiles.d + echo 'd /var/lib/dhcp 0755 - - - -' > ${D}${exec_prefix}/lib/tmpfiles.d/dhcpd.conf + echo 'f /var/lib/dhcp/dhcpd.leases - - - - -' >> ${D}${exec_prefix}/lib/tmpfiles.d/dhcpd.conf +} + +FILES_${PN}-client += "${exec_prefix}/lib/tmpfiles.d/dhcpd.conf" |