Skip to contentSkip to conversation

volatile-binds: add /srv to mount and install

PATCH New Sinan Kaya 1 participant 1 message Nov 18, 2020

lore
Share & tools
lore

Sinan Kaya

author
#0 lore raw

PATCH v2 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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-core/volatile-binds/volatile-binds.bb +2 -1
index b273293e9a8..3c8b18291e6 100644
@@ -35,7 +35,7 @@ def volatile_systemd_services(d):
 
 SYSTEMD_SERVICE_${PN} = "${@volatile_systemd_services(d)}"
 
-FILES_${PN} += "${systemd_unitdir}/system/*.service"
+FILES_${PN} += "${systemd_unitdir}/system/*.service ${servicedir}"
 
 do_compile () {
     while read spec mountpoint; do
@@ -64,6 +64,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