deiban packaging of linux kernel with sysmocom modifications
Go to file
Ben Hutchings 8ed7991db8 linux-image: Make a newly installed kernel the default if the package was previously removed
Currently the postinst script distinguishes installation vs upgrade by
checking whether its second argument is empty.  However, it will only
be empty if the package was *never* installed before, or was purged.
If the package has been installed, then removed, and is now being
installed again, it's seen as an upgrade.

Unfortunately dpkg only tells the preinst script whether or not this
is an upgrade.  So create a flag file there, consume it in postinst
and remove it in postrm.
2016-06-05 02:11:45 +01:00
debian linux-image: Make a newly installed kernel the default if the package was previously removed 2016-06-05 02:11:45 +01:00