diff options
author | Claudius Heine <ch@denx.de> | 2022-03-09 15:29:46 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-10 13:07:37 +0000 |
commit | 9633ecebb98eaf6d588564d05f7ec5b45f3bdf5a (patch) | |
tree | 8fa7f31299cdc9c8a63bfbcccea2aa6d5841fd54 /meta/classes/overlayfs.bbclass | |
parent | c3ac9501d71f3abd754843a6dcfba90f3e0ef828 (diff) | |
download | poky-9633ecebb98eaf6d588564d05f7ec5b45f3bdf5a.tar.gz |
overlayfs: add systemd unit path prefix to FILES:${PN} array
The 'FILES:${PN}' array is missing the systemd unit dir prefix causing
them to not be packaged and the build fails with the
`installed-vs-shipped` error.
This adds the `systemd_system_unitdir` variable in front of every unit
file added with this class.
(From OE-Core rev: d19166cbc567be0803eaf8d0a2a20f44758aae7b)
Signed-off-by: Claudius Heine <ch@denx.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/overlayfs.bbclass')
-rw-r--r-- | meta/classes/overlayfs.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/overlayfs.bbclass b/meta/classes/overlayfs.bbclass index 4a860f7308..29fced2ca7 100644 --- a/meta/classes/overlayfs.bbclass +++ b/meta/classes/overlayfs.bbclass | |||
@@ -103,7 +103,8 @@ python () { | |||
103 | unitList = unitFileList(d) | 103 | unitList = unitFileList(d) |
104 | for unit in unitList: | 104 | for unit in unitList: |
105 | d.appendVar('SYSTEMD_SERVICE:' + d.getVar('PN'), ' ' + unit) | 105 | d.appendVar('SYSTEMD_SERVICE:' + d.getVar('PN'), ' ' + unit) |
106 | d.appendVar('FILES:' + d.getVar('PN'), ' ' + strForBash(unit)) | 106 | d.appendVar('FILES:' + d.getVar('PN'), ' ' + |
107 | d.getVar('systemd_system_unitdir') + '/' + strForBash(unit)) | ||
107 | 108 | ||
108 | d.setVar('OVERLAYFS_UNIT_LIST', ' '.join([strForBash(s) for s in unitList])) | 109 | d.setVar('OVERLAYFS_UNIT_LIST', ' '.join([strForBash(s) for s in unitList])) |
109 | } | 110 | } |