[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#343147: linux-image-2.6.14-2-k7 fails to install on a 2.4 system with yaird



Package: linux-image-2.6.14-2-k7
Version: 2.6.14-5
Severity: normal

apt-get install linux-image-2.6.14-2-k7
Reading package lists... Done
Building dependency tree... Done
Starting
Starting 2
Done
Suggested packages:
  linux-doc-2.6.14 linux-source-2.6.14
Recommended packages:
  libc6-i686
The following NEW packages will be installed:
  linux-image-2.6.14-2-k7
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/17.5MB of archives.
After unpacking 50.1MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package linux-image-2.6.14-2-k7.
(Reading database ... 154160 files and directories currently installed.)
Unpacking linux-image-2.6.14-2-k7 (from .../linux-image-2.6.14-2-k7_2.6.14-5_i386.deb) ...
Could not find mkinitrd.yaird mkinitramfs. at /var/lib/dpkg/tmp.ci/preinst line 236, <STDIN> line 9.
Setting up linux-image-2.6.14-2-k7 (2.6.14-5) ...
Running depmod.
Finding valid ramdisk creators.
Failed to find suitable ramdisk generation tool for kernel version
2.6.14-2-k7 on running kernel 2.4.27-lpc.7.k7 in mkinitrd.yaird mkinitramfs
dpkg: error processing linux-image-2.6.14-2-k7 (--configure):
 subprocess post-installation script returned error exit status 9
Errors were encountered while processing:
 linux-image-2.6.14-2-k7
E: Sub-process /usr/bin/dpkg returned an error code (1)

But yaird *is* installed:

which mkinitrd.yaird
/usr/sbin/mkinitrd.yaird

After some analysis, I found that mkinitrd.yaird is to blame because of
this code:

if dpkg --compare-versions "$host_upstream_version" lt "2.6.8"; then
        exit 2
fi

mkinitrd.yaird does not work for upgrading from 2.4 kernel. Wouldn't it 
be nice if someone told you this instead of just saying "Failed to find
suitable ramdisk generation tool for kernel version"?

I would not have thought it refers to the *current* kernel version.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (100, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-lpc.7.k7
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages linux-image-2.6.14-2-k7 depends on:
ii  initramfs-tools [linux-initra 0.41       tools for generating an initramfs
ii  module-init-tools             3.2-pre9-4 tools for managing Linux kernel mo
ii  yaird [linux-initramfs-tool]  0.0.11-12  Yet Another mkInitRD

Versions of packages linux-image-2.6.14-2-k7 recommends:
pn  libc6-i686                    <none>     (no description available)

-- debconf information:
  linux-image-2.6.14-2-k7/preinst/elilo-initrd-2.6.14-2-k7: true
  linux-image-2.6.14-2-k7/postinst/old-system-map-link-2.6.14-2-k7: true
  linux-image-2.6.14-2-k7/postinst/depmod-error-initrd-2.6.14-2-k7: false
  linux-image-2.6.14-2-k7/postinst/depmod-error-2.6.14-2-k7: false
  linux-image-2.6.14-2-k7/postinst/old-dir-initrd-link-2.6.14-2-k7: true
  linux-image-2.6.14-2-k7/preinst/already-running-this-2.6.14-2-k7:
  linux-image-2.6.14-2-k7/postinst/bootloader-test-error-2.6.14-2-k7:
  linux-image-2.6.14-2-k7/prerm/would-invalidate-boot-loader-2.6.14-2-k7: true
  linux-image-2.6.14-2-k7/postinst/create-kimage-link-2.6.14-2-k7: true
  linux-image-2.6.14-2-k7/preinst/lilo-initrd-2.6.14-2-k7: true
  linux-image-2.6.14-2-k7/preinst/abort-overwrite-2.6.14-2-k7:
  linux-image-2.6.14-2-k7/postinst/bootloader-error-2.6.14-2-k7:
  linux-image-2.6.14-2-k7/preinst/overwriting-modules-2.6.14-2-k7: true
  linux-image-2.6.14-2-k7/prerm/removing-running-kernel-2.6.14-2-k7: true
  linux-image-2.6.14-2-k7/preinst/initrd-2.6.14-2-k7:
  linux-image-2.6.14-2-k7/preinst/lilo-has-ramdisk:
  linux-image-2.6.14-2-k7/preinst/failed-to-move-modules-2.6.14-2-k7:
  linux-image-2.6.14-2-k7/postinst/old-initrd-link-2.6.14-2-k7: true
  linux-image-2.6.14-2-k7/preinst/abort-install-2.6.14-2-k7:
  linux-image-2.6.14-2-k7/preinst/bootloader-initrd-2.6.14-2-k7: true
  linux-image-2.6.14-2-k7/postinst/kimage-is-a-directory:



Reply to: