aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2019-03-20 13:30:44 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2019-03-20 14:26:21 +0500
commitd1c6efa5fb8ca72b7261ff31d0dd160a9a676b3a (patch)
treea47139fba3a159cc109a677c8c05c1f958283ba9
parentb7d19c1777943b6f8cebd61d86b8a548a2d5a4c3 (diff)
downloadmeta-amd-d1c6efa5fb8ca72b7261ff31d0dd160a9a676b3a.tar.gz
meta-amd-d1c6efa5fb8ca72b7261ff31d0dd160a9a676b3a.tar.bz2
meta-amd-d1c6efa5fb8ca72b7261ff31d0dd160a9a676b3a.zip
common/swu/gdk-pixbuf: rm failing postinsts delayed til first boot
Package post-install intercept hooks that fail while do_rootfs and generate a warning similar to this: WARNING: development-image-1.0-r0 do_rootfs: The postinstall intercept hook 'update_pixbuf_cache' failed ... are deferred for execution on first boot by marking the package as "unpacked" instead of "installed" in: oe-core/meta/lib/oe/package_manager.py |-> run_intercepts() |-> _postpone_to_first_boot() |-> _handle_intercept_failure() |-> .mark_packages("unpacked", registered_pkgs.split()) and the oe-core/meta/lib/oe/rootfs.py later on generates an ERROR as: ERROR: development-image-1.0-r0 do_rootfs: The following packages could not be configured offline and rootfs is read-only: [gdk-pixbuf] SWUpdate adds "read-only-rootfs" to the IMAGE_FEATURES, hence the delayed pkg_postinst_* routines cannot be executed on the first boot to configure the packages. Therefore as a work-around, in case of gdk-pixbuf, we remove the pkg_postinst_<pixbuf-pkg> from all the PIXBUF_PACKAGES added in oe-core/meta/classes/pixbufcache.bbclass so that update_pixbuf_cache postinst-intercept never applies to these packages. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
-rw-r--r--common/mentor-swupdate/recipes-gnome/gdk-pixbuf/gdk-pixbuf_%.bbappend5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/mentor-swupdate/recipes-gnome/gdk-pixbuf/gdk-pixbuf_%.bbappend b/common/mentor-swupdate/recipes-gnome/gdk-pixbuf/gdk-pixbuf_%.bbappend
new file mode 100644
index 00000000..42e2ec29
--- /dev/null
+++ b/common/mentor-swupdate/recipes-gnome/gdk-pixbuf/gdk-pixbuf_%.bbappend
@@ -0,0 +1,5 @@
+python populate_packages_append () {
+ pixbuf_pkgs = d.getVar('PIXBUF_PACKAGES').split()
+ for pkg in pixbuf_pkgs:
+ d.setVar('pkg_postinst_%s' % pkg, '')
+}