[0/5] Postinstall improvements

Submitted by Laurentiu Palcu on Dec. 4, 2012, 1:59 p.m. | Patch ID: 40269


Message ID cover.1354626535.git.laurentiu.palcu@intel.com
State New
Headers show


git://git.yoctoproject.org/poky-contrib lpalcu/postinst

Commit Message

Laurentiu Palcu Dec. 4, 2012, 1:59 p.m.

This is the former RFC that was on the mailing list a couple of months ago.
Hopefully, this time the patches will make it in since last time the release
was to close to have these changes in.

So, the main improvement this patchset brings is running the icon cache
generation on host, at rootfs time, after all packages have been installed. This
will cut off a lot from the target's first boot time. Also, postinstalls for
gconf and gdk-pixbuf were also changed to run on host at rootfs time.

With these changes, just a handful of packages will need to run the postinstalls
on target (did the tests with core-image-sato). I prefer to approach the
remaining packages one by one.

My preliminary tests show no issues but, since there are lots of setups out there,
testing is always welcomed. Andreas, I know you have such a setup, could you take
these patches for a spin if you find some time?


The following changes since commit da6c266b1184eed8b1bc851f24a9ee17ab56d562:

  xserver-xorg: restore packaging for the DRI/DRI2/DBE extensions (2012-12-03 16:38:35 +0000)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib lpalcu/postinst

Laurentiu Palcu (5):
  image.bbclass: run postinst scripts once, at rootfs time
  rootfs generation: export two new variables to postinst scriptlets
  gtk-icon-cache: run the icon generation at rootfs time
  gdk-pixbuf: generate the pixbuf loader's cache ar rootfs time
  gconf.bbclass: run postinstalls at rootfs time

 meta/classes/gconf.bbclass                         |   11 +++++++----
 meta/classes/gtk-icon-cache.bbclass                |   18 ++++++++++++++----
 meta/classes/image.bbclass                         |   20 +++++++++++++++++---
 meta/classes/package_rpm.bbclass                   |    2 ++
 meta/classes/rootfs_deb.bbclass                    |    2 ++
 meta/classes/rootfs_ipk.bbclass                    |    2 ++
 meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.24.1.bb |   17 +++++++++++++++--
 7 files changed, 59 insertions(+), 13 deletions(-)