mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
c3ac9501d7
commit
9633ecebb9
@@ -103,7 +103,8 @@ python () {
|
||||
unitList = unitFileList(d)
|
||||
for unit in unitList:
|
||||
d.appendVar('SYSTEMD_SERVICE:' + d.getVar('PN'), ' ' + unit)
|
||||
d.appendVar('FILES:' + d.getVar('PN'), ' ' + strForBash(unit))
|
||||
d.appendVar('FILES:' + d.getVar('PN'), ' ' +
|
||||
d.getVar('systemd_system_unitdir') + '/' + strForBash(unit))
|
||||
|
||||
d.setVar('OVERLAYFS_UNIT_LIST', ' '.join([strForBash(s) for s in unitList]))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user