Bug 3218

Summary: [rpm] On-device rpm postinsts don't say where they came from
Product: [Runtime] Package Management Issues Reporter: Ross Burton <ross.burton>
Component: RPMAssignee: Kai Kang <kai.kang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: kai.kang, meta.mr.watcher, meta.watcher, yi.zhao
Version: 1.4   
Target Milestone: 1.4 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Ross Burton 2012-10-03 16:05:00 UTC
The first-boot post install scripts are numbered instead of named after the package that installed them, which is troublesome when there's a bug:

Running postinst /etc/rpm-postinsts/100...
Running postinst /etc/rpm-postinsts/101...
usage: update-rc.d [-n] [-f] [-r <root>] <basename> remove
       update-rc.d [-n] [-r <root>] [-s] <basename> defaults [NN | sNN kNN]
       update-rc.d [-n] [-r <root>] [-s] <basename> start|stop NN runlvl [runlvl] [...] .
                -n: not really
                -f: force
                -v: verbose
                -r: alternate root path (default is /)
                -s: invoke start methods if appropriate to current runlevel
ERROR: postinst /etc/rpm-postinsts/101 failed.
Running postinst /etc/rpm-postinsts/102...

(gtk-update-icon-cache:1220): GdkPixbuf-WARNING **: Cannot open pixbuf loader module file '/usr/lib/gdk-pixbuf-2.0/2.1
0.0/loaders.cache': No such file or directory
...

101 is actually busybox-hwclock and that's a known problem.  I just wish I knew what 102 was without digging into the rootfs.
Comment 1 Kai Kang 2013-03-04 01:38:51 UTC
Name the post-install script file name with its package name.
Merged in Yocto b7cb3809309d2093990f8b6f930e96c7db827cee
Comment 2 Yi Zhao 2013-03-15 02:45:32 UTC
Verified with master branch: 4da406cd50cf02a63ed76810a670aba1eb561c79