Bug 3218 - [rpm] On-device rpm postinsts don't say where they came from
Summary: [rpm] On-device rpm postinsts don't say where they came from
Status: VERIFIED FIXED
Alias: None
Product: Package Management Issues
Classification: Runtime
Component: RPM (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.4 M5
Assignee: Kai Kang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-10-03 16:05 UTC by Ross Burton
Modified: 2013-03-15 02:45 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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