Package: kernel-package Version: 9.008.4 Severity: normal Two things. First, how I got into this mess; I'm not filing a separate bug report for this because it's speculation, this was a week ago.
I build new kernel images using make-kpkg, but INITRD wasn't set in my configuration file, and I forgot to put --initrd on the command line. So I got non-initrd-aware packages that didn't boot. I redid them using a different --revision and reinstalled them. At this point (I discovered today) the initrd.img symlink was gone. And the grub entry for this kernel still didn't mention an initrd. Oops. The initrd did exist though. On to today's bug. I made some changes that required using a new initrd (added an SATA drive). And I knew the grub bits were messed up. "Oh, I'll just remove and reinstall it, that should get it to regenerate the initrd" I said to myself... Here's what actually happened: === caradoc:/space/linux# dpkg --remove kernel-image-2.6.14-rc5 fglrx-kernel-2.6.14-rc5 (Reading database ... 162830 files and directories currently installed.) Removing kernel-image-2.6.14-rc5 ... You are running a kernel (version 2.6.14-rc5) and attempting to remove the same version. This is a potentially disastrous action. Not only will /boot/vmlinuz-2.6.14-rc5 be removed, making it impossible to boot it, (you will have to take action to change your boot loader to boot a new kernel), it will also remove all modules under the directory /lib/modules/2.6.14-rc5. Just having a copy of the kernel image is not enough, you will have to replace the modules too. I repeat, this is very dangerous. If at all in doubt, answer no. If you know exactly what you are doing, and are prepared to hose your system, then answer Yes. Remove the running kernel image (not recommended) [No]? Yes Ok, proceeding with removing running kernel image. Searching for GRUB installation directory ... found: /boot/grub . Testing for an existing GRUB menu.list file... found: /boot/grub/menu.lst . Searching for splash image... none found, skipping... Found kernel: /vmlinuz.old Found kernel: /vmlinuz-2.6.13-rc6 Found kernel: /vmlinuz-2.6.12-1-amd64-k8-smp Found kernel: /vmlinuz-2.6.8-11-amd64-k8-smp Found kernel: /vmlinuz-2.6.8-11-amd64-k8 Updating /boot/grub/menu.lst ... done The link /boot/vmlinuz is a damaged link Removing symbolic link vmlinuz Unless you used the optional flag in lilo, you may need to re-run lilo Removing fglrx-kernel-2.6.14-rc5 ... caradoc:/space/linux# dpkg -i kernel-image-2.6.14-rc5_drow.1_amd64.deb Selecting previously deselected package kernel-image-2.6.14-rc5. (Reading database ... 161196 files and directories currently installed.) Unpacking kernel-image-2.6.14-rc5 (from kernel-image-2.6.14-rc5_drow.1_amd64.deb) ... Setting up kernel-image-2.6.14-rc5 (drow.1) ... Not touching initrd symlinks since we are being reinstalled (drow.1) Not updating image symbolic links since we are being updated (drow.1) Searching for GRUB installation directory ... found: /boot/grub . Testing for an existing GRUB menu.list file... found: /boot/grub/menu.lst . Searching for splash image... none found, skipping... Found kernel: /vmlinuz.old Found kernel: /vmlinuz-2.6.14-rc5 Found kernel: /vmlinuz-2.6.13-rc6 Found kernel: /vmlinuz-2.6.12-1-amd64-k8-smp Found kernel: /vmlinuz-2.6.8-11-amd64-k8-smp Found kernel: /vmlinuz-2.6.8-11-amd64-k8 Updating /boot/grub/menu.lst ... done === "Not touching symlinks since we are being reinstalled", but the package had been removed. And the dangling symlink had been deleted in the previous removal. Ergo, the wrong default kernel in menu.lst, and no /vmlinuz symlink. If I --purge instead of --remove, of course, it works just fine. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.14-rc5 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages kernel-package depends on: ii dpkg 1.13.11 package maintenance system for Deb ii dpkg-dev 1.13.11 package building tools for Debian ii gcc [c-compiler] 4:4.0.2-1 The GNU C compiler ii gcc-3.3 [c-compiler] 1:3.3.6-10 The GNU C compiler ii gcc-3.4 [c-compiler] 3.4.4-9 The GNU C compiler ii gcc-4.0 [c-compiler] 4.0.2-2 The GNU C compiler ii make 3.80-11 The GNU version of the "make" util ii perl 5.8.7-7 Larry Wall's Practical Extraction Versions of packages kernel-package recommends: ii bzip2 1.0.2-10 high-quality block-sorting file co ii libc6-dev [libc-dev] 2.3.5-7 GNU C Library: Development Librari -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]