update-initramfs: Remove test for working dpkg-trigger

dpkg-trigger was added in dpkg 1.14.17, thus in Debian lenny and
Ubuntu intrepid.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Ben Hutchings 2018-08-03 21:07:30 +08:00
parent 01af757918
commit 2bb6a9cc48

View File

@ -23,8 +23,7 @@ linux-image-*)
;;
?*)
if [ $# = 1 ] \
&& [ x"$1" = x-u ] \
&& dpkg-trigger --check-supported 2>/dev/null
&& [ x"$1" = x-u ]
then
if dpkg-trigger --no-await update-initramfs; then
echo "update-initramfs: deferring update (trigger activated)"