summaryrefslogtreecommitdiff
path: root/debian/postinst
AgeCommit message (Collapse)Author
2011-03-09Prefixing debhelper files with package name.Daniel Baumann
2011-03-09Expand glob for kernels in post{inst,rm} to include "vmlinux"-prefixed ↵Chris Lamb
kernels on powerpc.
2011-03-09Adjusting code formating in maintainer scripts.Daniel Baumann
2011-03-09Restricting counting of installed kernels based on /boot/vmlinuz-* instead ↵Daniel Baumann
of /boot/vmlinuz*. Kernel images installed the proper way from .deb packages are always naming their kernel files vmlinuz-*. This way, we can avoid tampering with completely customized kernels which handle initramfs on their own (or completely different).
2011-03-09Use triggers when calling update-initramfs in postinst and postrmChris Lamb
One complication with the interaction between live-initramfs and update-initramfs is completeness - in a normal Debian system, we do not mind that not all the initrds are updated, so one would simply call "update-initramfs -u" when upgrading (for example) mdadm. However, live-initramfs needs to update *all* initrds (ie. '-u -k all'), but calling this would not use the trigger functionality as 'update-initramfs' will only accept triggering with a single '-u' argument. This is sensible behaviour, as the trigger callback cannot (and shouldn't) be parameterised. The result is this is that we must detect how many kernel flavours we have and revert to the non-triggered call ('-u -k all') if we have more than one. My tests show that this is behaviour is sound, even in the slightly contrived example of updating live-initramfs whilst installing a second kernel, regardless of the interleaving of the calls to postinst. We additionally attempt the same logic in the postrm so that upgrading live-initramfs (for example, in chroot_local-packages) does not result in two calls expensive calls in update-initramfs.
2011-03-09Adding live-initramfs 1.91.5-1.Daniel Baumann
2011-03-09Adding live-initramfs 1.91.4-1.Daniel Baumann
2011-03-09Adding live-initramfs 1.87.5-1.Daniel Baumann
2011-03-09Adding live-initramfs 1.87.1-1.Daniel Baumann
2007-09-23Adding casper 1.66+debian-1.Daniel Baumann
2007-09-23Adding casper 1.61+debian-1.Daniel Baumann