Bug#426404: initramfs-tools: firmware related problems in hook-functions
Package: initramfs-tools
Version: 0.88
Severity: important
Hi,
there seems to be something wrong with recent changes to hook-functions.
With initramfs-tools 0.88:
root@aurora:~# LANG=C dpkg-reconfigure linux-image-2.6.22-rc3
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
Other valid candidates: mkinitramfs-kpkg mkinitrd.yaird
mkdir: cannot create directory `/tmp/mkinitramfs_FD9659/lib/udev/': File exists
cp: `/lib/firmware/ql2100_fw.bin' and `/tmp/mkinitramfs_FD9659/lib/firmware/ql2100_fw.bin' are the same file
cp: `/lib/firmware/ql2200_fw.bin' and `/tmp/mkinitramfs_FD9659/lib/firmware/ql2200_fw.bin' are the same file
cp: `/lib/firmware/ql2300_fw.bin' and `/tmp/mkinitramfs_FD9659/lib/firmware/ql2300_fw.bin' are the same file
cp: `/lib/firmware/ql2322_fw.bin' and `/tmp/mkinitramfs_FD9659/lib/firmware/ql2322_fw.bin' are the same file
cp: `/lib/firmware/ql2400_fw.bin' and `/tmp/mkinitramfs_FD9659/lib/firmware/ql2400_fw.bin' are the same file
Trying to boot with this initrd the kernel is not able to find the
firmware for my qla2xxx, although a diff -Nur between the contents of
the following two images yields to nothing:
root@aurora:~# ls -l /boot/initrd.img-2.6.22*
-rw-r--r-- 1 root root 5268495 2007-05-28 12:33 /boot/initrd.img-2.6.22-rc3
-rw-r--r-- 1 root root 5269374 2007-05-27 22:30 /boot/initrd.img-2.6.22-rc3.bak
The one suffixed with '.bak' is a working initrd built with 0.87b.
Albeit it's not the source of this problem, notice the creation of the
local variable "man_x" and the usage of "mam_x" in the script:
diff -Nur initramfs-tools-0.87b/hook-functions initramfs-tools-0.88/hook-functions
--- initramfs-tools-0.87b/hook-functions 2007-04-16 19:58:58.000000000 +0200
+++ initramfs-tools-0.88/hook-functions 2007-05-27 00:55:26.000000000 +0200
@@ -38,8 +38,11 @@
done
}
+# Add dependent modules + eventual firmware
manual_add_modules()
{
+ local man_x firmwares firmware
+
for mam_x in $(modprobe --set-version="${version}" --ignore-install \
ciao,
ema
Reply to: