Bug#458527: linux-image-2.6.18-5-686: Postinst script fails if grub not installed
Package: linux-image-2.6.18-5-686
Version: 2.6.18.dfsg.1-17
Severity: normal
When there is no grub on the system, at the end of the installation postinst
script fails:
------------------------------------------------------------------------------
menek:~# apt-get install linux-image-2.6.18-5-686
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
linux-doc-2.6.18
Recommended packages:
libc6-i686
The following NEW packages will be installed:
linux-image-2.6.18-5-686
0 upgraded, 1 newly installed, 0 to remove and 55 not upgraded.
Need to get 0B/16.3MB of archives.
After unpacking 49.8MB of additional disk space will be used.
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Preconfiguring packages ...
Selecting previously deselected package linux-image-2.6.18-5-686.
(Reading database ... 168760 files and directories currently installed.)
Unpacking linux-image-2.6.18-5-686 (from .../linux-image-2.6.18-5-686_2.6.18.dfsg.1-17_i386.deb) ...
Done.
Setting up linux-image-2.6.18-5-686 (2.6.18.dfsg.1-17) ...
Hmm. The package shipped with a symbolic link /lib/modules/2.6.18-5-686/source
However, I can not read the target: No such file or directory
Therefore, I am deleting /lib/modules/2.6.18-5-686/source
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
The provided postinst hook script [/sbin/update-grub] could not be run.
dpkg: error processing linux-image-2.6.18-5-686 (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
linux-image-2.6.18-5-686
E: Sub-process /usr/bin/dpkg returned an error code (1)
------------------------------------------------------------------------------
In this case it would be better if the script gave a warning, that one should
manually update bootloader (lilo in my case). I am not sure if it is not a
kernel-package bug, because the same happens with my custom made linux-image.
-- System Information:
Debian Release: 4.0
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-initrd
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Versions of packages linux-image-2.6.18-5-686 depends on:
ii coreutils 5.97-5.3 The GNU core utilities
ii debconf [debconf-2.0] 1.5.11etch1 Debian configuration management sy
ii initramfs-tools [linux-initr 0.85h tools for generating an initramfs
ii module-init-tools 3.3-pre4-2 tools for managing Linux kernel mo
Versions of packages linux-image-2.6.18-5-686 recommends:
pn libc6-i686 <none> (no description available)
-- debconf information:
linux-image-2.6.18-5-686/postinst/create-kimage-link-2.6.18-5-686: true
linux-image-2.6.18-5-686/postinst/old-system-map-link-2.6.18-5-686: true
linux-image-2.6.18-5-686/preinst/elilo-initrd-2.6.18-5-686: true
linux-image-2.6.18-5-686/postinst/bootloader-test-error-2.6.18-5-686:
linux-image-2.6.18-5-686/postinst/depmod-error-2.6.18-5-686: false
linux-image-2.6.18-5-686/preinst/already-running-this-2.6.18-5-686:
linux-image-2.6.18-5-686/preinst/bootloader-initrd-2.6.18-5-686: true
linux-image-2.6.18-5-686/postinst/old-dir-initrd-link-2.6.18-5-686: true
linux-image-2.6.18-5-686/postinst/old-initrd-link-2.6.18-5-686: true
linux-image-2.6.18-5-686/preinst/failed-to-move-modules-2.6.18-5-686:
linux-image-2.6.18-5-686/preinst/abort-install-2.6.18-5-686:
linux-image-2.6.18-5-686/prerm/would-invalidate-boot-loader-2.6.18-5-686: true
linux-image-2.6.18-5-686/postinst/bootloader-error-2.6.18-5-686:
linux-image-2.6.18-5-686/preinst/lilo-initrd-2.6.18-5-686: true
linux-image-2.6.18-5-686/preinst/overwriting-modules-2.6.18-5-686: true
shared/kernel-image/really-run-bootloader: true
linux-image-2.6.18-5-686/postinst/depmod-error-initrd-2.6.18-5-686: false
linux-image-2.6.18-5-686/prerm/removing-running-kernel-2.6.18-5-686: true
linux-image-2.6.18-5-686/preinst/initrd-2.6.18-5-686:
linux-image-2.6.18-5-686/preinst/lilo-has-ramdisk:
linux-image-2.6.18-5-686/postinst/kimage-is-a-directory:
linux-image-2.6.18-5-686/preinst/abort-overwrite-2.6.18-5-686:
Reply to: