Bug#636697: initramfs-tools: no way to include library modules for libraries installed in multiarch path
Package: initramfs-tools
Version: 0.109.1
Followup-For: Bug #636697
Dear Maintainer,
I ran into a problem with wheezy.
* What led up to the situation?
Updating from squeeze to wheezy in the running system was successfull except for
the error as given below when trying to generate the initrd for kernel
3.2 on amd64 (multiarch with i386)
Quote:
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-4-amd64 /boot/vmlinuz-3.2.0-4-amd64
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-4-amd64 /boot/vmlinuz-3.2.0-4-amd64
update-initramfs: Generating /boot/initrd.img-3.2.0-4-amd64
E: /usr/share/initramfs-tools/hooks/pcidetect failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.2.0-4-amd64 with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-4-amd64.postinst line 696.
dpkg: error processing linux-image-3.2.0-4-amd64 (--configure):
subprocess installed post-installation script returned error exit status 1
* What exactly did you do (or not do) that was effective (or
ineffective)?
I tracked down the problem to the script pcidetect that trys to copy_exec some
libs/bins to the new initrd-root. E.g. libresolv, libpci and lspci
directly from /lib or /usr/lib or /usr/bin without considering that
in multiarch on amd64 the libs are in sub-dirs.
I worked around this by creating symlinks, e.g. in /usr/lib: libpci.so.3 -> /lib/x86_64-linux-gnu/libpci.so.3
* What was the outcome of this action?
Now, initramfs completes without a hitch and the systems boots. :-)
* What outcome did you expect instead?
-
Request: would it be possible to fix this or tell me, what I should do
to correct this problem in a systematic and reliable way? I guess my solution
might break anytime... :-(
Thanks
Joachim
-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 19M Dec 16 2011 /boot/initrd.img-2.6.38-7-generic
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.2.0-4-amd64 root=/dev/mapper/ssd-root ro nosplash noplymouth ipv6.disable=1 nomodeset fb=false
-- /proc/filesystems
btrfs
ext4
ext2
fuseblk
-- lsmod
Module Size Used by
parport_pc 22364 0
ppdev 12763 0
lp 17149 0
parport 31858 3 lp,ppdev,parport_pc
bnep 17567 2
cpufreq_conservative 13147 0
rfcomm 33700 0
cpufreq_powersave 12454 0
cpufreq_stats 12866 0
bluetooth 119455 10 rfcomm,bnep
cpufreq_userspace 12576 0
rfkill 19012 2 bluetooth
autofs4 27628 2
binfmt_misc 12957 1
fuse 62020 1
nfsd 216029 2
nfs 312433 1
nfs_acl 12511 2 nfs,nfsd
auth_rpcgss 37143 2 nfs,nfsd
fscache 36739 1 nfs
lockd 67306 2 nfs,nfsd
sunrpc 173730 15 lockd,auth_rpcgss,nfs_acl,nfs,nfsd
ext2 59231 1
dm_crypt 22586 0
isl6423 12520 2
stv6110x 13008 2
stv090x 42943 2
snd_hda_codec_hdmi 30824 1
snd_hda_codec_realtek 188858 1
snd_hda_intel 26259 0
snd_hda_codec 78031 3 snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
psmouse 64497 0
snd_hwdep 13186 1 snd_hda_codec
radeon 718073 2
snd_pcm 68083 3 snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi
snd_page_alloc 13003 2 snd_pcm,snd_hda_intel
snd_seq 45126 0
powernow_k8 17618 1
mperf 12453 1 powernow_k8
snd_seq_device 13176 1 snd_seq
snd_timer 22917 2 snd_seq,snd_pcm
serio_raw 12931 0
pcspkr 12579 0
edac_mce_amd 17103 0
k10temp 12611 0
edac_core 35258 0
ttm 53664 1 radeon
evdev 17562 12
drm_kms_helper 31370 1 radeon
drm 183952 4 drm_kms_helper,ttm,radeon
power_supply 13475 1 radeon
asus_atk0110 17297 0
i2c_algo_bit 12841 1 radeon
snd 52889 9 snd_timer,snd_seq_device,snd_seq,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
saa716x_ff 30323 0
sp5100_tco 12900 0
saa716x_core 56797 23 saa716x_ff
dvb_core 77873 2 saa716x_core,saa716x_ff
i2c_piix4 12536 0
i2c_core 23876 9 i2c_piix4,saa716x_core,i2c_algo_bit,drm,drm_kms_helper,radeon,stv090x,stv6110x,isl6423
soundcore 13065 1 snd
shpchp 31293 0
button 12937 0
wmi 13243 0
processor 28157 1 powernow_k8
thermal_sys 18040 1 processor
ext4 350602 4
crc16 12343 2 ext4,bluetooth
jbd2 62065 1 ext4
mbcache 13114 2 ext4,ext2
btrfs 505528 0
crc32c 12656 1
libcrc32c 12426 1 btrfs
zlib_deflate 25638 1 btrfs
dm_mirror 17707 0
dm_region_hash 13502 1 dm_mirror
dm_log 13528 2 dm_region_hash,dm_mirror
dm_mod 63645 15 dm_log,dm_mirror,dm_crypt
usbhid 36418 0
hid 81328 1 usbhid
sg 25874 0
sr_mod 21899 0
sd_mod 36136 4
cdrom 35401 1 sr_mod
crc_t10dif 12348 1 sd_mod
ohci_hcd 26563 0
ahci 24997 3
libahci 22860 1 ahci
ehci_hcd 40215 0
r8169 46972 0
mii 12675 1 r8169
xhci_hcd 73434 0
libata 140630 2 libahci,ahci
usbcore 128741 5 xhci_hcd,ehci_hcd,ohci_hcd,usbhid
scsi_mod 162269 4 libata,sd_mod,sr_mod,sg
usb_common 12354 1 usbcore
-- /etc/initramfs-tools/modules
-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=gzip
DEVICE=
NFSROOT=auto
-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no
-- /etc/crypttab
# <target name> <source device> <key file> <options>
-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:
/usr/share/initramfs-tools/hooks:
btrfs
busybox
cryptgnupg
cryptkeyctl
cryptopenct
cryptopensc
cryptpassdev
cryptroot
dmraid
dmsetup
fuse
keymap
klibc
kmod
lvm2
ntfs_3g
pcidetect
plymouth
thermal
udev
-- System Information:
Debian Release: 7.0
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.ISO-8859-15@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash
Versions of packages initramfs-tools depends on:
ii cpio 2.11+dfsg-0.1
ii klibc-utils 2.0.1-3.1
ii kmod 9-3
ii module-init-tools 9-3
ii udev 175-7.2
Versions of packages initramfs-tools recommends:
pn busybox | busybox-initramfs | busybox-static <none>
Versions of packages initramfs-tools suggests:
ii bash-completion 1:2.0-1
-- no debconf information
Grüßle
Jocki
--
============================/\===/\=======/\============================
Joachim F. Selinger / \ / \/\ /\/ \ ___
Brunhildenweg 4 / \/\ / \ \/\ \ |
D-70597 Stuttgart,Germany/ / / CU \ / \ \ ----------(0)----------
Tel.(49)+711-901-8040 / ü / / / \ \ '
Fax.(49)+711-901-8041==selinger[at]idefix.s.bawue.de=====Soaring========
Reply to: