diff -Nru /tmp/WnskVMCGBo/kernel-package-8.091.0ubuntu3/kernel/image.postinst /tmp/JvvX9Hnvlp/kernel-package-8.091.0ubuntu4/kernel/image.postinst
--- /tmp/WnskVMCGBo/kernel-package-8.091.0ubuntu3/kernel/image.postinst	2004-09-01 11:28:17.000000000 -0700
+++ /tmp/JvvX9Hnvlp/kernel-package-8.091.0ubuntu4/kernel/image.postinst	2004-09-29 19:11:04.000000000 -0700
@@ -842,11 +810,13 @@
 # The initrd symlink should probably be in the same dir that the
 # symlinks are in
 if ($initrd) {
+  my $initrd_path = $realimageloc . "initrd.img-$version";
   my $ret = system("mkinitrd " .
                    ($mkimage ? "-m '$mkimage' " : "") .
-                   "-o " . $realimageloc . "initrd.img-$version " .
-		   "/lib/modules/$version");
+                   "-o $initrd_path.new /lib/modules/$version");
   die("Failed to create initrd image.\n") if $ret;
+  rename("$initrd_path.new", "$initrd_path")
+    or die("Failed to rename initrd ($initrd_path)\n");
 
   if (! defined $ARGV[1] || ! $ARGV[1] || $ARGV[1] =~ m/<unknown>/og) {
     image_magic("initrd.img", $image_dest) if $initrd;
