aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2019-03-20 13:39:48 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2019-03-20 14:26:39 +0500
commit8ebc4655421e8c26c74df1c944415a40e897b608 (patch)
treea6408e7857f4b0962dd60bfefcce584979863215
parentd1c6efa5fb8ca72b7261ff31d0dd160a9a676b3a (diff)
downloadmeta-amd-8ebc4655421e8c26c74df1c944415a40e897b608.tar.gz
meta-amd-8ebc4655421e8c26c74df1c944415a40e897b608.tar.bz2
meta-amd-8ebc4655421e8c26c74df1c944415a40e897b608.zip
common/swu/liberation-fonts: rm failing postinst 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_font_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: ['liberation-fonts'] 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 liberation-fonts, we remove the pkg_postinst_<font-pkg> from all the FONT_PACKAGES added in oe-core/meta/classes/fontcache.bbclass so that update_font_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-graphics/ttf-fonts/liberation-fonts_%.bbappend4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/mentor-swupdate/recipes-graphics/ttf-fonts/liberation-fonts_%.bbappend b/common/mentor-swupdate/recipes-graphics/ttf-fonts/liberation-fonts_%.bbappend
new file mode 100644
index 00000000..2092c17a
--- /dev/null
+++ b/common/mentor-swupdate/recipes-graphics/ttf-fonts/liberation-fonts_%.bbappend
@@ -0,0 +1,4 @@
+python add_fontcache_postinsts_append () {
+ for pkg in d.getVar('FONT_PACKAGES').split():
+ d.setVar('pkg_postinst_%s' % pkg, '')
+}