#678962 lintian: [new-check] installs-initramfs-but-does-not-call-update

#678962#5
Date:
2012-06-25 11:51:36 UTC
From:
To:
If a binary package installs files in:
 * /usr/share/initramfs/hooks
 * /usr/share/initramfs/scripts

In postinst:
 * the said binary or it's Depends:${binary:Version} packages must
   have a call update-initramfs

In postrm:
 * the said binary package *must* have a call update-initramfs

False positive possibility:
 * Since calls to update-initramfs are trigger sensitive, trigger can be
   always activated by for-example a postrm script of ${binary:Version}
   reverse-depends package.

Also note, there is currently no dh integration available. See bug
491027.

Regards,

Dmitrijs.

#678962#10
Date:
2016-04-23 09:54:23 UTC
From:
To:
Control: tags -1 moreinfo

Hi,

Is this still relevant?  AFAICT there is exactly 0 packages shipping
anything in those two directories.

Thanks,
~Niels

#678962#17
Date:
2016-04-23 22:35:55 UTC
From:
To:
Still relevant, new paths though:

/usr/share/initramfs-tools/hooks
/usr/share/initramfs-tools/scripts

Regards,

Dimitri.

#678962#24
Date:
2022-01-10 13:38:31 UTC
From:
To:
[...]

It should now use dpkg-trigger and *not* run update-initramfs directly.

Ben.

#678962#29
Date:
2022-01-10 14:45:43 UTC
From:
To:
Sorry, that's wrong, it should include a triggers control file which
will look something like:

# Triggers added by dh_installinitramfs/13.3.4
activate-noawait update-initramfs

Ben.