Skip to contentSkip to conversation

xen: Amend do_install for FHS 3.0.

PATCH In review Eric Chanudet 2 participants 2 messages Dec 6, 2018 – Dec 12, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: Amend do_install for FHS 3.0.

Under FHS 3.0: /var/run -> /run
http://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s15.html

systemd-tmpfiles throws some warnings with /var/run in xen.conf:
systemd-tmpfiles[981]: [/etc/tmpfiles.d/xen.conf:1] Line references path below legacy directory /var/run/, updating /var/run/xenstored → /run/xenstored; please update the tmpfiles.d/ drop-in file accordingly. systemd-tmpfiles[981]: [/etc/tmpfiles.d/xen.conf:2] Line references path below legacy directory /var/run/, updating /var/run/xend → /run/xend; please update the tmpfiles.d/ drop-in file accordingly. systemd-tmpfiles[981]: [/etc/tmpfiles.d/xen.conf:3] Line references path below legacy directory /var/run/, updating /var/run/xend/boot → /run/xend/boot; please update the tmpfiles.d/ drop-in file accordingly. systemd-tmpfiles[981]: [/etc/tmpfiles.d/xen.conf:4] Line references path below legacy directory /var/run/, updating /var/run/xen → /run/xen; please update the tmpfiles.d/ drop-in file accordingly.

---
 recipes-extended/xen/xen.inc | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
recipes-extended/xen/xen.inc +6 -5
index 7eb2ac4..e29e7f7 100644
@@ -992,17 +992,18 @@ do_install() {
     oe_runmake DESTDIR="${D}" install
 
     # remove installed volatiles
-    rm -rf ${D}${localstatedir}/run \
+    rm -rf ${D}${base_prefix}/run \
+        ${D}${localstatedir}/run \
         ${D}${localstatedir}/lock \
         ${D}${localstatedir}/log \
         ${D}${localstatedir}/volatile \
         ${D}${localstatedir}/lib/xen
 
     VOLATILE_DIRS=" \
-        ${localstatedir}/run/xenstored \
-        ${localstatedir}/run/xend \
-        ${localstatedir}/run/xend/boot \
-        ${localstatedir}/run/xen \
+        ${base_prefix}/run/xenstored \
+        ${base_prefix}/run/xend \
+        ${base_prefix}/run/xend/boot \
+        ${base_prefix}/run/xen \
         ${localstatedir}/log/xen \
         ${localstatedir}/lock/xen \
         ${localstatedir}/lock/subsys \
Signature · 1 line
2.19.1
#1 lore raw

merged.

Bruce

Quoted 51 lines · Eric Chanudet

Under FHS 3.0: /var/run -> /run
http://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s15.html

systemd-tmpfiles throws some warnings with /var/run in xen.conf:
systemd-tmpfiles[981]: [/etc/tmpfiles.d/xen.conf:1] Line references path below legacy directory /var/run/, updating /var/run/xenstored → /run/xenstored; please update the tmpfiles.d/ drop-in file accordingly. systemd-tmpfiles[981]: [/etc/tmpfiles.d/xen.conf:2] Line references path below legacy directory /var/run/, updating /var/run/xend → /run/xend; please update the tmpfiles.d/ drop-in file accordingly. systemd-tmpfiles[981]: [/etc/tmpfiles.d/xen.conf:3] Line references path below legacy directory /var/run/, updating /var/run/xend/boot → /run/xend/boot; please update the tmpfiles.d/ drop-in file accordingly. systemd-tmpfiles[981]: [/etc/tmpfiles.d/xen.conf:4] Line references path below legacy directory /var/run/, updating /var/run/xen → /run/xen; please update the tmpfiles.d/ drop-in file accordingly.

---
 recipes-extended/xen/xen.inc | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
recipes-extended/xen/xen.inc +6 -6
index 7eb2ac4..e29e7f7 100644
@@ -992,17 +992,18 @@ do_install() {
     oe_runmake DESTDIR="${D}" install
 
     # remove installed volatiles
-    rm -rf ${D}${localstatedir}/run \
+    rm -rf ${D}${base_prefix}/run \
+        ${D}${localstatedir}/run \
         ${D}${localstatedir}/lock \
         ${D}${localstatedir}/log \
         ${D}${localstatedir}/volatile \
         ${D}${localstatedir}/lib/xen
 
     VOLATILE_DIRS=" \
-        ${localstatedir}/run/xenstored \
-        ${localstatedir}/run/xend \
-        ${localstatedir}/run/xend/boot \
-        ${localstatedir}/run/xen \
+        ${base_prefix}/run/xenstored \
+        ${base_prefix}/run/xend \
+        ${base_prefix}/run/xend/boot \
+        ${base_prefix}/run/xen \
         ${localstatedir}/log/xen \
         ${localstatedir}/lock/xen \
         ${localstatedir}/lock/subsys \
--

2.19.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II