Bug#702250: initramfs-tools: rootfs on usb no longer works with linux kernel 3.8
Package: initramfs-tools
Version: 0.109
Severity: normal
Tags: d-i patch
Hello,
from linux kernel version 3.8 onward, having root filesystem on
usb mass storage connected to ehci usb controller no longer works.
Moreover, usb keyboard in emergency shell does not work.
In linux kernel version 3.8, the pci portion of the ehci-hcd module
has been split into its own module, ehci-pci.
After the split, ehci-hcd depends on ehci-pci (not the other way
aroundi), so the ehci-pci is not added automatically to the initrd
image when ehci-hcd is added.
Adding ehci-pci explicitly into auto_add_modules() in hook-functions
solves that. It creates no problems for older kernels, as non-existitng
modules are silently ignored.
-- Package-specific info:
-- initramfs sizes
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.8.0 root=UUID=d877125e-9b8d-47ea-b57b-7411292fd26c ro console=ttyS2,115200 console=tty0
-- /proc/filesystems
btrfs
xfs
ext3
ext2
ext4
reiserfs
msdos
vfat
fuseblk
-- lsmod
Module Size Used by
fuse 62705 0
vfat 17365 0
msdos 17077 0
fat 46039 2 vfat,msdos
reiserfs 193545 0
ext4 392038 0
crc16 12343 1 ext4
jbd2 71860 1 ext4
mbcache 13114 1 ext4
dm_mod 64083 0
nfsd 187722 2
auth_rpcgss 29433 1 nfsd
nfs_acl 12511 1 nfsd
nfs 106135 0
lockd 55577 2 nfs,nfsd
fscache 37519 1 nfs
sunrpc 160428 6 nfs,nfsd,auth_rpcgss,lockd,nfs_acl
xfs 618732 1
loop 22908 0
raid10 39701 1
md_mod 92648 2 raid10
coretemp 12854 0
kvm_intel 118327 0
kvm 314909 1 kvm_intel
crc32c_intel 21850 0
ghash_clmulni_intel 13062 0
iTCO_wdt 12831 0
iTCO_vendor_support 12704 1 iTCO_wdt
aesni_intel 50746 0
aes_x86_64 16843 1 aesni_intel
xts 12722 1 aesni_intel
lrw 12871 1 aesni_intel
gf128mul 13047 2 lrw,xts
ablk_helper 12572 1 aesni_intel
cryptd 14560 3 ghash_clmulni_intel,aesni_intel,ablk_helper
evdev 17650 3
lpc_ich 16757 0
i2c_i801 17045 0
mfd_core 12601 1 lpc_ich
i2c_core 24041 1 i2c_i801
psmouse 69190 0
pcspkr 12632 0
serio_raw 12940 0
microcode 17931 0
acpi_cpufreq 13213 0
mperf 12453 1 acpi_cpufreq
video 17686 0
button 12944 0
processor 36566 1 acpi_cpufreq
btrfs 628457 2
zlib_deflate 25638 1 btrfs
crc32c 12656 1
libcrc32c 12426 2 xfs,btrfs
usb_storage 48064 1
hid_generic 12385 0
usbhid 40792 0
hid 81770 2 hid_generic,usbhid
sg 26095 0
sd_mod 40549 10
ahci 25060 0
libahci 22918 1 ahci
e1000e 134511 0
thermal 17425 0
libata 121896 2 ahci,libahci
ehci_pci 12472 0
fan 12681 0
ehci_hcd 40420 1 ehci_pci
thermal_sys 22833 4 fan,video,thermal,processor
mpt2sas 120022 8
raid_class 12788 1 mpt2sas
scsi_transport_sas 29653 1 mpt2sas
scsi_mod 162472 7 sg,scsi_transport_sas,usb_storage,mpt2sas,libata,sd_mod,raid_class
usbcore 134217 4 usb_storage,ehci_hcd,ehci_pci,usbhid
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
do_bootloader = 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
-- /proc/mdstat
Personalities : [raid10]
md0 : active raid10 sda[0] sdd[3] sdc[2] sdb[1]
5860270080 blocks super 1.2 512K chunks 2 near-copies [4/4] [UUUU]
unused devices: <none>
-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:
/usr/share/initramfs-tools/hooks:
btrfs
busybox
dmsetup
keymap
klibc
kmod
mdadm
thermal
udev
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.8.0 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages initramfs-tools depends on:
ii cpio 2.11-8
ii klibc-utils 2.0.1-3
ii kmod 9-2
ii module-init-tools 9-2
ii udev 175-7
Versions of packages initramfs-tools recommends:
ii busybox 1:1.20.0-7
Versions of packages initramfs-tools suggests:
ii bash-completion 1:2.0-1
-- no debconf information
diff --git a/hook-functions b/hook-functions
index 3cdd7f0..9f0e60b 100644
--- a/hook-functions
+++ b/hook-functions
@@ -422,7 +422,7 @@ auto_add_modules()
for arg in "$@" ; do
case "$arg" in
base)
- modules="$modules ehci-hcd ohci-hcd uhci-hcd usbhid"
+ modules="$modules ehci-hcd ehci-pci ohci-hcd uhci-hcd usbhid"
modules="$modules xhci xhci-hcd"
modules="$modules hid-apple hid-cherry hid-generic"
modules="$modules hid-logitech hid-logitech-dj"
--
1.7.10.4
Reply to: