deferred trigger failures not reported on --status-fd and not properly in the terminal log
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Debian) |
Fix Released
|
Unknown
|
|||
dpkg (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: dpkg
While looking at a upgrade failure report I noticed that dpkg does not report trigger failures as real errors via the status-fd or via the terminal output. Here is a example:
term.log
...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.
cpio: ./etc/modprobe.
update-initramfs: failed for /boot/initrd.
dpkg: subprocess installed post-installation script returned error exit status 1
....
status:
2010-03-17 01:05:55,527 INFO cache.commit()
2010-03-17 01:43:24,349 ERROR got an error from dpkg for pkg: 'dmsetup': 'dependency problems - leaving unconfigured
'
This error on the status-fd is a subsequent error that happens because initramfs-tools is now in half-configured state because the trigger failed. This is misleading and conceptually it should be the same kind of error as a normal postinst failure.
Related branches
tags: | added: patch |
Changed in dpkg (Debian): | |
status: | Unknown → New |
Changed in dpkg (Debian): | |
status: | New → Fix Committed |
Changed in dpkg (Debian): | |
status: | Fix Committed → Fix Released |
The original bug is: /bugs.launchpad .net/bugs/ 540125
https:/