diff options
| author | Eric Chanudet <eric.chanudet@gmail.com> | 2018-12-06 18:33:02 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-12-12 14:16:12 -0500 |
| commit | c4f4a623dad9b5dde6de82926984e5a0c7524d70 (patch) | |
| tree | 7df95cac6ca16aab3c6b3406928332030970d737 | |
| parent | c1882281f7fe60fc3840be880f7e43c613d19440 (diff) | |
| download | meta-virtualization-c4f4a623dad9b5dde6de82926984e5a0c7524d70.tar.gz | |
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.
Signed-off-by: Eric Chanudet <chanudete@ainfosec.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
| -rw-r--r-- | recipes-extended/xen/xen.inc | 11 |
1 files 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() { | |||
| 992 | oe_runmake DESTDIR="${D}" install | 992 | oe_runmake DESTDIR="${D}" install |
| 993 | 993 | ||
| 994 | # remove installed volatiles | 994 | # remove installed volatiles |
| 995 | rm -rf ${D}${localstatedir}/run \ | 995 | rm -rf ${D}${base_prefix}/run \ |
| 996 | ${D}${localstatedir}/run \ | ||
| 996 | ${D}${localstatedir}/lock \ | 997 | ${D}${localstatedir}/lock \ |
| 997 | ${D}${localstatedir}/log \ | 998 | ${D}${localstatedir}/log \ |
| 998 | ${D}${localstatedir}/volatile \ | 999 | ${D}${localstatedir}/volatile \ |
| 999 | ${D}${localstatedir}/lib/xen | 1000 | ${D}${localstatedir}/lib/xen |
| 1000 | 1001 | ||
| 1001 | VOLATILE_DIRS=" \ | 1002 | VOLATILE_DIRS=" \ |
| 1002 | ${localstatedir}/run/xenstored \ | 1003 | ${base_prefix}/run/xenstored \ |
| 1003 | ${localstatedir}/run/xend \ | 1004 | ${base_prefix}/run/xend \ |
| 1004 | ${localstatedir}/run/xend/boot \ | 1005 | ${base_prefix}/run/xend/boot \ |
| 1005 | ${localstatedir}/run/xen \ | 1006 | ${base_prefix}/run/xen \ |
| 1006 | ${localstatedir}/log/xen \ | 1007 | ${localstatedir}/log/xen \ |
| 1007 | ${localstatedir}/lock/xen \ | 1008 | ${localstatedir}/lock/xen \ |
| 1008 | ${localstatedir}/lock/subsys \ | 1009 | ${localstatedir}/lock/subsys \ |
