[meta-oe,v2] volatile-binds: add /srv to mount and install

Submitted by Sinan Kaya on Nov. 18, 2020, 10:54 p.m. | Patch ID: 178052

Details

Message ID 20201118225450.10241-1-okaya@kernel.org
State Accepted
Commit 0fd0b5cc27e3ef72bc00f593b0730b7fca5d0450
Headers show

Commit Message

Sinan Kaya Nov. 18, 2020, 10:54 p.m.
We are installing a service to volatile mount /srv
directory but we are not creating it on the target.

Signed-off-by: Sinan Kaya <okaya@kernel.org>

---
 meta/recipes-core/volatile-binds/volatile-binds.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#144795): https://lists.openembedded.org/g/openembedded-core/message/144795
Mute This Topic: https://lists.openembedded.org/mt/78353231/3616849
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [michael@yoctoproject.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

diff --git a/meta/recipes-core/volatile-binds/volatile-binds.bb b/meta/recipes-core/volatile-binds/volatile-binds.bb
index b273293e9a8..3c8b18291e6 100644
--- a/meta/recipes-core/volatile-binds/volatile-binds.bb
+++ b/meta/recipes-core/volatile-binds/volatile-binds.bb
@@ -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