From c4f4a623dad9b5dde6de82926984e5a0c7524d70 Mon Sep 17 00:00:00 2001 From: Eric Chanudet Date: Thu, 6 Dec 2018 18:33:02 -0500 Subject: xen: Amend do_install for FHS 3.0. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Eric Chanudet Signed-off-by: Bruce Ashfield --- recipes-extended/xen/xen.inc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index 7eb2ac4b..e29e7f75 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc @@ -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 \ -- cgit v1.2.3-54-g00ecf