[kernel] r9930 - in dists/trunk/linux-2.6/debian: . templates/temp.image.plain
Maximilian Attems
maks at alioth.debian.org
Sun Dec 9 23:03:38 UTC 2007
Author: maks
Date: Sun Dec 9 23:03:38 2007
New Revision: 9930
Log:
postrm: Nuke initramfs sha1sum on linux-image package removal.
update-initramfs doesn't touch initramfs on sha1sum mismatch per
default (debian default). this can be overriden manualy.
there is no point in keeping an initramfs record of a gone image.
Modified:
dists/trunk/linux-2.6/debian/changelog
dists/trunk/linux-2.6/debian/templates/temp.image.plain/postrm
Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog (original)
+++ dists/trunk/linux-2.6/debian/changelog Sun Dec 9 23:03:38 2007
@@ -20,6 +20,7 @@
* [i386] Set SND_SC6000, EDAC_I3000, EDAC_I5000.
* Add fedora FireWire OHCI 1.0 support patch.
* Set USB_EHCI_TT_NEWSCHED fills USB 2.0 bandwith better. (closes: #454797)
+ * postrm: Nuke initramfs sha1sum on linux-image package removal.
[ Bastian Blank ]
* [amd64, i386]: Set kernel architecture to x86.
@@ -31,7 +32,7 @@
[ dann frazier ]
* [ia64]: Enable BLK_CPQ_DA
- -- maximilian attems <maks at debian.org> Sat, 08 Dec 2007 00:49:42 +0100
+ -- maximilian attems <maks at debian.org> Sun, 09 Dec 2007 23:40:55 +0100
linux-2.6 (2.6.23-1~experimental.1) UNRELEASED; urgency=low
Modified: dists/trunk/linux-2.6/debian/templates/temp.image.plain/postrm
==============================================================================
--- dists/trunk/linux-2.6/debian/templates/temp.image.plain/postrm (original)
+++ dists/trunk/linux-2.6/debian/templates/temp.image.plain/postrm Sun Dec 9 23:03:38 2007
@@ -345,7 +345,7 @@
die "Failed to process /etc/kernel/postrm.d/$version";
}
-# check and remove damaged and dangling symlinks
+# purge initramfs and related
if ($ARGV[0] !~ /upgrade/) {
if (-f $realimageloc . "initrd.img-$version") {
unlink $realimageloc . "initrd.img-$version";
@@ -353,6 +353,10 @@
if (-f $realimageloc . "initrd.img-$version.bak") {
unlink $realimageloc . "initrd.img-$version.bak";
}
+ if (-f "/var/lib/initramfs-tools/$version") {
+ unlink "/var/lib/initramfs-tools/$version";
+ }
+ # check and remove damaged and dangling symlinks
image_magic($kimage, $image_dest);
image_magic($kimage . ".old", $image_dest);
image_magic("initrd.img", $image_dest) if $initrd;
More information about the Kernel-svn-changes
mailing list