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

Bug#341524: yaird: fails to upgrade from linux-2.4 to 2.6



Package: yaird
Version: 0.0.11-12
Severity: important


Hello,

I just upgraded to sid from sarge, and I'm having problems moving to the
kernel 2.6. First off, let me mention that the upgrade didn't go as
smoothly as planned, which was to be expected nowadays... My packages
for kernel-image-2.6 were removed somehow, probably due to the new
linux-image kernels. Anyways...

Now that I actually try to switch to 2.6, some weird problem doesn't
want to let me. I tried this:

# aptitude install yaird
[...]
# tail -1 /etc/kernel-img.conf
ramdisk = /usr/sbin/mkinitrd.yaird
# : note that I also tried without the above line
# aptitude install linux-image-k7
[...]
The following NEW packages will be installed:
  linux-image-2.6-k7 linux-image-2.6.14-2-k7 linux-image-k7 
[...]
Selecting previously deselected package linux-image-2.6.14-2-k7.
(Reading database ... 230480 files and directories currently installed.)
Unpacking linux-image-2.6.14-2-k7 (from
.../linux-image-2.6.14-2-k7_2.6.14-4_i386.deb) ...

You are attempting to install an initrd kernel image (version
2.6.14-2-k7) while running a kernel of version 2.4.27-2-k7, but
you have no suitable ramdisk generation tool installed among 
/usr/sbin/mkinitrd.yaird.  This will break the installation, unless a
suitable ramdisk generation tool is also being installed right
now.

Could not find . at /var/lib/dpkg/tmp.ci/preinst line 228.
Selecting previously deselected package linux-image-2.6-k7.
Unpacking linux-image-2.6-k7 (from .../linux-image-2.6-k7_2.6.14-4_i386.deb) ...
Selecting previously deselected package linux-image-k7.
Unpacking linux-image-k7 (from .../linux-image-k7_2.6.14-4_i386.deb) ...
Setting up linux-image-2.6.14-2-k7 (2.6.14-4) ...
Failed to find suitable ramdisk generation tool for kernel version 2.6.14-2-k7 on running kernel 2.4.27-2-k7 in /usr/sbin/mkinitrd.yaird
dpkg: error processing linux-image-2.6.14-2-k7 (--configure):
 subprocess post-installation script returned error exit status 9
dpkg: dependency problems prevent configuration of linux-image-2.6-k7:
 linux-image-2.6-k7 depends on linux-image-2.6.14-2-k7; however:
  Package linux-image-2.6.14-2-k7 is not configured yet.
dpkg: error processing linux-image-2.6-k7 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-k7:
 linux-image-k7 depends on linux-image-2.6-k7; however:
  Package linux-image-2.6-k7 is not configured yet.
dpkg: error processing linux-image-k7 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.14-2-k7
 linux-image-2.6-k7
 linux-image-k7
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up linux-image-2.6.14-2-k7 (2.6.14-4) ...
Failed to find suitable ramdisk generation tool for kernel version 2.6.14-2-k7 on running kernel 2.4.27-2-k7 in /usr/sbin/mkinitrd.yaird
dpkg: error processing linux-image-2.6.14-2-k7 (--configure):
 subprocess post-installation script returned error exit status 9
dpkg: dependency problems prevent configuration of linux-image-2.6-k7:
 linux-image-2.6-k7 depends on linux-image-2.6.14-2-k7; however:
  Package linux-image-2.6.14-2-k7 is not configured yet.
dpkg: error processing linux-image-2.6-k7 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-k7:
 linux-image-k7 depends on linux-image-2.6-k7; however:
  Package linux-image-2.6-k7 is not configured yet.
dpkg: error processing linux-image-k7 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.14-2-k7
 linux-image-2.6-k7
 linux-image-k7

Seems to me that yaird doesn't support migration from 2.4 to 2.6.14. It does support anything below 2.6.13 though:

# mkinitrd --supported-host-version=2.4.27-2-k7 --supported-target-version=2.6.12 && echo 1
1
# mkinitrd --supported-host-version=2.4.27-2-k7 --supported-target-version=2.6.13 && echo 1 
#

That is after adding the line to kernel-img.conf but i had the same result before.

Now, I *was* able to upgrade, using the initramfs-tools package. Maybe the dependency list for linux-image should be reversed for that package, ie. put initramfs before yaird.

# /usr/sbin/mkinitramfs  --supported-host-version=2.4.27-2-k7 --supported-target-version=2.6.14 && echo 1
1

I'm not sure I understand all the implications here, but I leave that all in your wise hands. I can help more if you tell me what to do. :)

Thanks,

a.



Reply to: