Commit Graph

11 Commits

Author SHA1 Message Date
Ben Hutchings 550ac5c6dc linux-image: postrm: Make failure of rmdir on purge non-fatal (Closes: #836282) 2016-09-16 23:49:36 +01:00
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
Ben Hutchings 586edb84cd linux-image: postrm: Update default symlinks before running hook scripts
Currently the default symlinks may be broken when we run hook scripts,
causing removal to fail if a hook (e.g. lilo) relies on them.
2016-06-05 02:11:44 +01:00
Ben Hutchings e4657e0ec4 linux-image: Rewrite maintainer scripts in shell
Use the new linux-update-symlinks command for symlink updates.
Drop support for minimal_swap, no_symlinks, use_hard_links and *_hook
parameters in /etc/kernel-img.conf.

Thanks to Aurelien Jarno and Santiago Vila for pointing out the
ischroot command and that it's in an essential package (i.e. doesn't
add a dependency).
2016-06-05 02:11:44 +01:00
Ben Hutchings 2d3c4236d2 linux-image: postrm: Remove unnecessary initialisation of debconf
We don't use debconf here any more.
2016-05-29 19:48:43 +01:00
Ben Hutchings e55913c12b linux-image: Remove various unused variables in maintainer scripts 2016-05-29 19:46:39 +01:00
Ben Hutchings 30ae9b2024 linux-image: Stop setting $STEM in environment for maintainer script hooks
This seems to have been a transitional feature for the switch
from kernel-image to linux-image.  mkvmlinuz still uses it but
no hook scripts appear to depend on it.
2016-05-27 11:54:02 +01:00
Ben Hutchings 2b5391e7a4 linux-{headers,image}: Remove support for version-specific hooks
This was inherited/cargo-culted from kernel-package, undocumented, and
apparently useless.
2016-01-27 19:52:52 +00:00
Ben Hutchings 65d6c09bbd Remove residual support for multiple image package types
We only really support the 'plain' type.  Remove all the conditions on
image type and remove 'plain' from all target and file names.
2016-01-27 19:52:52 +00:00
Ben Hutchings 505d7273f9 Move templates into the *right* places
...and remove the now-empty directories

svn path=/dists/trunk/linux/; revision=20506
2013-08-17 11:34:07 +00:00
Ben Hutchings c8f07adb80 Move templates in preparation for using a single template system
svn path=/dists/trunk/linux/; revision=20505
2013-08-17 11:30:57 +00:00