Bug#333220: doesn't install: Internal Error: Could not find image (/boot/vmlinuz-2.4.27-xxs1500)
reassign 333220 kernel-package 9.008
severity 333220 important
tags 333220 patch
thanks
Martin Michlmayr wrote:
> Package: kernel-image-2.4.27-xxs1500
> Version: 2.4.27-11.040815-2
> Severity: grave
>
> kernel-image-2.4.27-xxs1500 doesn't install. It seems kernel-package
> is confused as to the name of the kernel.
>
> Setting up kernel-image-2.4.27-xxs1500 (2.4.27-11.040815-2) ...
> Internal Error: Could not find image (/boot/vmlinuz-2.4.27-xxs1500)
> dpkg: error processing kernel-image-2.4.27-xxs1500 (--install):
> subprocess post-installation script returned error exit status 2
>
> vs
>
> -rw-r--r-- 1 root root 6963004 2005-10-07 23:53 vmlinux-2.4.27-xxs1500
This seems to be some deficiency in kernel-package.
/usr/share/kernel-package/rules defines for xxs1500
kimage := vmlinux.srec
...
kimagedest = $(INT_IMAGE_DESTDIR)/vmlinux-$(version)
and the same kimage value is put in the package postinst. But later
in the postinst
# Paranoid check to make sure that the correct value is put in there
if (! $kimage) { $kimage = "vmlinuz"; } # Hmm. empty
elsif ($kimage =~ m/^b?zImage$/o) { $kimage = "vmlinuz"; } # these produce vmlinuz
elsif ($kimage =~ m/^[iI]mage$/o) { my $nop = $kimage; }
elsif ($kimage =~ m/^vmlinux$/o) { my $nop = $kimage; }
else { $kimage = "vmlinuz"; } # Default
the default of "vmlinuz" is chosen, which leads to the vmlinux/vmlinuz
mismatch noted above.
Thiemo
--- image.postinst.old 2005-10-11 03:04:09.000000000 +0200
+++ image.postinst 2005-10-11 03:07:05.000000000 +0200
@@ -233,6 +233,7 @@ if (! $kimage) { $kim
elsif ($kimage =~ m/^b?zImage$/o) { $kimage = "vmlinuz"; } # these produce vmlinuz
elsif ($kimage =~ m/^[iI]mage$/o) { my $nop = $kimage; }
elsif ($kimage =~ m/^vmlinux$/o) { my $nop = $kimage; }
+elsif ($kimage =~ m/^vmlinux.srec$/o) { kimage = "vmlinux"; }
else { $kimage = "vmlinuz"; } # Default
$ENV{KERNEL_ARCH}=$kernel_arch if $kernel_arch;
Reply to: