volatile-binds: add /srv to mount and install
PATCH 1/1 volatile-binds: add /srv to mount and install
We are installing a service to volatile mount /srv directory but we are not creating it on the target.
--- meta/recipes-core/volatile-binds/volatile-binds.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-core/volatile-binds/volatile-binds.bb +2 -0
@@ -36,6 +36,7 @@ def volatile_systemd_services(d): SYSTEMD_SERVICE_${PN} = "${@volatile_systemd_services(d)}" FILES_${PN} += "${systemd_unitdir}/system/*.service" +FILES_${PN}_append = " ${servicedir}" do_compile () { while read spec mountpoint; do
@@ -64,6 +65,7 @@ do_compile[dirs] = "${WORKDIR}" do_install () { install -d ${D}${base_sbindir} + install -d ${D}${servicedir} install -m 0755 mount-copybind ${D}${base_sbindir}/ install -d ${D}${systemd_unitdir}/system
Signature · 1 line
2.17.1
Quoted 10 lines · Sinan Kaya
Signed-off-by Sinan Kaya <[email protected]>--- meta/recipes-core/volatile-binds/volatile-binds.bb | 2 ++ 1 file changed, 2 insertions(+)meta/recipes-core/volatile-binds/volatile-binds.bb +0
-0
meta/recipes-core/volatile-binds/volatile-binds.bb def volatile_systemd_services(d): · line 39
Quoted 4 lines
meta/recipes-core/volatile-binds/volatile-binds.bb +1
-0@@ -36,6 +36,7 @@ def volatile_systemd_services(d): SYSTEMD_SERVICE_${PN} = "${@volatile_systemd_services(d)}" FILES_${PN} += "${systemd_unitdir}/system/*.service" +FILES_${PN}_append = " ${servicedir}"
Just out of interest, why does that need to be an append? Why can't that be part of the line above?
Quoted 16 lines
meta/recipes-core/volatile-binds/volatile-binds.bb +1
-0do_compile () { while read spec mountpoint; do@@ -64,6 +65,7 @@ do_compile[dirs] = "${WORKDIR}" do_install () { install -d ${D}${base_sbindir} + install -d ${D}${servicedir} install -m 0755 mount-copybind ${D}${base_sbindir}/ install -d ${D}${systemd_unitdir}/system
Quoted 5 lines · Konrad Weihmann
Quoted 2 lines
FILES_${PN} += "${systemd_unitdir}/system/*.service" +FILES_${PN}_append = " ${servicedir}"
Just out of interest, why does that need to be an append? Why can't that be part of the line above?
I can fix that. I copied from a bbappend file.
Quoted 9 lines · Sinan Kaya
Quoted 5 lines · Konrad Weihmann
Quoted 2 lines
FILES_${PN} += "${systemd_unitdir}/system/*.service"
+FILES_${PN}_append = " ${servicedir}"Just out of interest, why does that need to be an append? Why can't that be part of the line above?
I can fix that. I copied from a bbappend file.
Yeah please do so, appends are pretty invasive, better leave them out if there is no real need for them