Comment 4 for bug 580419

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

If think this is the faulty code of apport in data/general-hooks/ubuntu.py
        if report['Package'] != 'initramfs-tools':
            # update-initramfs emits this when it fails, usually invoked from the linux-image postinst
            # https://wiki.ubuntu.com/KernelTeam/DebuggingUpdateErrors
            if 'DpkgTerminalLog' in report and re.search(r'^update-initramfs: failed for ', report['DpkgTerminalLog'], re.MULTILINE):
                # File these reports on the initramfs-tools package instead
                report['SourcePackage'] = 'initramfs-tools'

The regex is applied to the full term.log, not only the last installation session, and thus it catches a previous failure, not the one triggering the report.