Bug#636697: Failure of initramfs-tools pcidetect hook

2013-06-02 Thread Joachim Selinger
Hi Ben, hi Michael!

On Sun, 02 Jun 2013 16:31:18 +0100
Ben Hutchings b...@decadent.org.uk wrote:

BH On Sun, 2013-06-02 at 12:08 +0200, Michael Prokop wrote:
BH  * Joachim Selinger [Fri May 31, 2013 at 10:25:17PM +0200]:
BH  
BH  [...]
BH   run-parts: executing /etc/kernel/postinst.d/initramfs-tools 
3.2.0-4-amd64 /boot/vmlinuz-3.2.0-4-amd64
BH   update-initramfs: Generating /boot/initrd.img-3.2.0-4-amd64
BH   E: /usr/share/initramfs-tools/hooks/pcidetect failed with return 1.
BH  [...]
BH  
BH  Well, I'm not aware of a file
BH  /usr/share/initramfs-tools/hooks/pcidetect shipped by Debian.
BH  
BH  What does 'dpkg -S /usr/share/initramfs-tools/hooks/pcidetect' return?
BH 
BH Well, this has nothing to do with the original bug report, so Joachim
BH should open a new bug report against whatever package it is.

Thanks for this and sorry for the trouble. You are absolutely right. This file
does not belong to any package anymore - seems to be a leftover from
long ago. I just removed it and everything is ok. 

Again, sorry for reporting this. 

Is it ok to just ignore this now or do I have to do anything to close
my report?

Thanks
Joachim
--
/\===/\===/\
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


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20130602224141.c81f33717eaebbde955e0...@bawue.de



Bug#636697: initramfs-tools: no way to include library modules for libraries installed in multiarch path

2013-05-31 Thread Joachim Selinger
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 
parport31858  3 lp,ppdev,parport_pc
bnep   17567  2 
cpufreq_conservative13147  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
autofs427628  2 
binfmt_misc12957  1 
fuse   62020  1 
nfsd  216029  2 
nfs   312433  1 
nfs_acl12511  2 nfs,nfsd
auth_rpcgss37143  2 nfs,nfsd
fscache36739  1 nfs
lockd  67306  2 nfs,nfsd
sunrpc173730  15 lockd,auth_rpcgss,nfs_acl,nfs,nfsd
ext2   59231  1 
dm_crypt   22586  0 
isl642312520  2 
stv6110x   13008  2 
stv090x42943  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
psmouse64497  0 
snd_hwdep  13186  1 snd_hda_codec
radeon718073  2 
snd_pcm68083  3 snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi
snd_page_alloc 13003  2 snd_pcm,snd_hda_intel
snd_seq45126  0 
powernow_k817618  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 
k10temp12611  0 
edac_core  35258  0 
ttm53664  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
snd52889  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