openvpn: ensure ${sysconfdir}/tmpfiles.d is packaged
PATCH 1/3 openvpn: ensure ${sysconfdir}/tmpfiles.d is packaged
The file was installed but never packaged, ending up in no systemd-tmpfiles configuration on the final rootfs.
--- meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb | 1 + 1 file changed, 1 insertion(+)
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb +1 -0
@@ -61,6 +61,7 @@ RRECOMMENDS_${PN} = "kernel-module-tun" FILES_${PN}-dbg += "${libdir}/openvpn/plugins/.debug" FILES_${PN} += "${systemd_unitdir}/system/[email protected] \ + ${sysconfdir}/tmpfiles.d \ /run" FILES_${PN}-sample += "${systemd_unitdir}/system/[email protected] \ ${systemd_unitdir}/system/[email protected] \
Signature · 1 line
2.7.4
PATCH 2/3 openvpn: remove duplicate attempt to create dir in ${localstatedir}
When systemd is in DISTRO_FEATURES we have two attempts to create ${localstatedir}/run/openvpn: one at build time with install command and the other via systemd-tmpfiles at runtime which is enabled by installing openvpn-volatile.conf. Beside looking redundant, by dropping the build-time dir creation attempt solves the following error when building images with both base-files and openvpn:
Error: Transaction check error:
file /var/run conflicts between attempted installs of openvpn-2.3.9-r0.cortexa7hf_neon_vfpv4 and base-files-3.0.14-r89.raspberrypi3
--- meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb | 2 -- 1 file changed, 2 deletions(-)
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb +0 -2
@@ -47,8 +47,6 @@ do_install_append() { install -d ${D}/${localstatedir} install -d ${D}/${localstatedir}/lib install -d -m 710 ${D}/${localstatedir}/lib/openvpn - install -d -m 755 ${D}/${localstatedir}/run/ - install -d -m 755 ${D}/${localstatedir}/run/openvpn install -d ${D}${sysconfdir}/tmpfiles.d install -m 0644 ${WORKDIR}/openvpn-volatile.conf ${D}${sysconfdir}/tmpfiles.d/openvpn.conf
Signature · 1 line
2.7.4
PATCH 3/3 openvpn: openvpn-volatile.conf: avoid hardcoded localstatedir
In reply to Andrea Galbusera--- meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf | 2 +- meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
meta-networking/recipes-support/openvpn/openvpn/openvpn-volatile.conf +1 -1
@@ -1 +1 @@ -d /var/run/openvpn 0755 root root - +d @LOCALSTATEDIR@/run/openvpn 0755 root root -
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb +1 -0
@@ -50,6 +50,7 @@ do_install_append() { install -d ${D}${sysconfdir}/tmpfiles.d install -m 0644 ${WORKDIR}/openvpn-volatile.conf ${D}${sysconfdir}/tmpfiles.d/openvpn.conf + sed -i -e 's#@LOCALSTATEDIR@#${localstatedir}#g' ${D}${sysconfdir}/tmpfiles.d/openvpn.conf fi }
Signature · 1 line
2.7.4
Quoted 13 lines · Andrea Galbusera
The file was installed but never packaged, ending up in no systemd-tmpfiles configuration on the final rootfs.
Signed-off-by Andrea Galbusera <[email protected]>--- meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb | 1 + 1 file changed, 1 insertion(+)meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb +0
-0
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb RRECOMMENDS_${PN} = "kernel-module-tun" · line 65
Quoted 5 lines
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb +1
-0@@ -61,6 +61,7 @@ RRECOMMENDS_${PN} = "kernel-module-tun" FILES_${PN}-dbg += "${libdir}/openvpn/plugins/.debug" FILES_${PN} += "${systemd_unitdir}/system/[email protected] \ + ${sysconfdir}/tmpfiles.d \ /run"
This change is fine but packaging /run seems suspicious to me.
Quoted 10 lines
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb +0
-1FILES_${PN}-sample += "${systemd_unitdir}/system/[email protected] \ ${systemd_unitdir}/system/[email protected] \ --2.7.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Quoted 18 lines · Khem Raj
Quoted 1 line · Andrea Galbusera
The file was installed but never packaged, ending up in no
systemd-tmpfiles
Review
Quoted 8 lines
configuration on the final rootfs.
Signed-off-by Andrea Galbusera <[email protected]>--- meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb | 1 + 1 file changed, 1 insertion(+)(quoted diff) +0
-0b/meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb
Quoted 5 lines
index a3ef765..5fd714a 100644
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb +0
-0@@ -61,6 +61,7 @@ RRECOMMENDS_${PN} = "kernel-module-tun"
Quoted 7 lines
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb RRECOMMENDS_${PN} = "kernel-module-tun" · line 65
Quoted 4 lines
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb +1
-0FILES_${PN}-dbg += "${libdir}/openvpn/plugins/.debug" FILES_${PN} += "${systemd_unitdir}/system/[email protected] \ + ${sysconfdir}/tmpfiles.d \ /run"This change is fine but packaging /run seems suspicious to me.
To me as well... I'll send a separate patch to get rid of it. Nothing else seems to reference /run in the recipe
Quoted 14 lines
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb RRECOMMENDS_${PN} = "kernel-module-tun" · line 66
Quoted 2 lines
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb +0
-0FILES_${PN}-sample += "${systemd_unitdir}/system/meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb RRECOMMENDS_${PN} = "kernel-module-tun" · line 67
Quoted 1 line
meta-networking/recipes-support/openvpn/openvpn_2.3.9.bb +0
-0${systemd_unitdir}/system/Quoted 8 lines
--
2.7.4--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel