diff options
author | 2016-08-11 14:27:45 +0200 | |
---|---|---|
committer | 2016-08-12 17:02:36 +0100 | |
commit | 1ae4819a54c556290fa2ed0e190c3587fec35016 (patch) | |
tree | f3850a11c2652f3d22fb52b3a5ef0222f793adae | |
parent | 2005d2ae6a6b4c54ec3b70dbf2c8c890f7a460f5 (diff) | |
download | meta-swupd-1ae4819a54c556290fa2ed0e190c3587fec35016.tar.gz meta-swupd-1ae4819a54c556290fa2ed0e190c3587fec35016.tar.bz2 meta-swupd-1ae4819a54c556290fa2ed0e190c3587fec35016.zip |
swupd-image: Fix files ownership if IMAGE_BASENAME is not default
In case IMAGE_BASENAME is set on image recipe level the files ownership on
target rootfs is incorrect for recipes inheriting swupd-image.bbclass.
Depending on the context swupd-image.bbclass used either PN (PN_BASE) or
IMAGE_BASENAME when generating path to pseudo shared state directory. This
seems correct only when IMAGE_BASENAME is not set as it defaults to PN.
This patch resolves above problem.
Addresses [YOCTO #10108].
Signed-off-by: Piotr Figiel <p.figiel@camlintechnologies.com>
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
-rw-r--r-- | classes/swupd-image.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/swupd-image.bbclass b/classes/swupd-image.bbclass index 9272626..3c5fb5d 100644 --- a/classes/swupd-image.bbclass +++ b/classes/swupd-image.bbclass @@ -81,7 +81,7 @@ python () { # Because real image building via SWUPD_IMAGES can happen also after # the initial "bitbake <core image>" invocation, we have to keep that # pseudo database around and cannot delete it. - pseudo_state = d.expand('${TMPDIR}/work-shared/${PN_BASE}/pseudo') + pseudo_state = d.expand('${TMPDIR}/work-shared/${IMAGE_BASENAME}/pseudo') d.setVar('PSEUDO_LOCALSTATEDIR', pseudo_state) # Non mega virtual images must depend on the mega image having been |