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

Bug#337902: Missing dependency on /usr/sbin/mkinitramfs



Sven Luther wrote:
On Mon, Nov 07, 2005 at 07:48:07AM +0100, Magnus Ekdahl wrote:

Package: linux-image-2.6.14-1-k7
Version: 2.6.14-2
Severity: important

When installing I get the following error (sorry for the swedish locale)

running dpkg --pending --configure ...
Ställer in linux-image-2.6.14-1-k7 (2.6.14-2) ...
Failed to find suitable ramdisk generation tool for kernel version


You should have either yaird or initramfs-tools installed, yaird has the
benefit of not needing udev or hotplug.

That said, there is a dependency on :

  yaird | initramfs-tools | linux-initramfs-tool
Which should have pulled in yaird, but apparently hasn't, can you check why ?

I think that I have yaird installed. The output below is freely translated from Swedish

# apt-get install yaird
Reading pakagelists... done
Building depenencytree... done
yaird is already the latest version.

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# dpkg -P initramfs-tools
(Reading database ... 171586 files and directories installed.)
Removing initramfs-tools ...
Erasing configurationfiles for initramfs-tools ...
# apt-get install --reinstall linux-image-2.6.14-1-k7
Reading pakagelists... done
Building depenencytree... done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0B/17,4MB archive.
After extraction an additional of 0B will be used.
Do you want to continue [Y/n]?
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
(Reading database ... 171527 files and directories installed.)
Preparing to replace linux-image-2.6.14-1-k7 2.6.14-2 (with .../linux-image-2.6.14-1-k7_2.6.14-2_i386.deb) ...

You are attempting to install an initrd kernel image (version
2.6.14-1-k7) while running a kernel of version 2.6.7-1-k7, but
you have no suitable ramdisk generation tool installed among
/usr/sbin/mkinitrd /usr/sbin/mkinitrd.yaird /usr/sbin/mkinitramfs. 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.

You are attempting to install an initrd kernel image (version 2.6.14-1-k7)
This will not work unless you have configured your boot loader to use
initrd. (An initrd image is a kernel image that expects to use an INITial
Ram Disk to mount a minimal root file system into RAM and use that for
booting).

   As a reminder, in order to configure LILO, you need
   to add an 'initrd=/initrd.img' to the image=/vmlinuz
   stanza of your /etc/lilo.conf

I repeat, You need to configure your boot loader -- please read your
bootloader documentation for details on how to add initrd images.

If you have already done so, and you wish to get rid of this message,
please put
  "do_initrd = Yes"
in /etc/kernel-img.conf. Note that this is optional, but if you do not,
you will continue to see this message whenever you install a kernel
image using initrd.
Do you want to stop now? [Y/n]n
The directory /lib/modules/2.6.14-1-k7 still exists. Continuing as directed.
Extracting replacement linux-image-2.6.14-1-k7 ...
Setting up linux-image-2.6.14-1-k7 (2.6.14-2) ...
Failed to find suitable ramdisk generation tool for kernel version 2.6.14-1-k7 on running kernel 2.6.7-1-k7 in /usr/sbin/mkinitrd /usr/sbin/mkinitrd.yaird /usr/sbin/mkinitramfs
dpkg: error while handling linux-image-2.6.14-1-k7 (--configure):
 subprocess post-installation script gave errorcode 2
There was an error handling:
 linux-image-2.6.14-1-k7
E: Sub-process /usr/bin/dpkg returned an error code (1)

# ls -la /usr/sbin/mkinitrd.yaird
-rwxr-xr-x  1 root root 2796 2005-11-03 05:06 /usr/sbin/mkinitrd.yaird
# ls -la /usr/sbin/mkinitrd
-rwxr-xr-x  1 root root 29308 2005-10-24 09:09 /usr/sbin/mkinitrd
# ls -la /usr/sbin/mkinitramfs
ls: /usr/sbin/mkinitramfs: The file or directory does not exist

--
I hope this brings some clearity to the fenomena.

/Magnus Ekdahl



Reply to: