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

Bug#674484: initramfs-tools: panic() does not cope well with set -e



Package: initramfs-tools
Version: 0.102
Severity: normal

panic() [and thus maybe_break()] attempts to load modules which may not
be present in the initramfs (such as i8042, which is compiled built-in).
This causes any script with set -e to abort.

For example, booting with break=pre-mdadm will not break before mdadm,
but skip it altogether and leave the system trying to boot without a
root.

Appending "|| true" to all modprobe lines in panic() should do the
trick.


-- Package-specific info:
-- initramfs sizes
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.2.0-2-amd64 root=/dev/mapper/root ro break=pre-mdadm

-- resume
RESUME=/dev/mapper/vg9-swap2
-- /proc/filesystems
	ext3
	fuseblk

-- lsmod
Module                  Size  Used by
pci_stub               12429  1 
vboxpci                19066  0 
vboxnetadp             13155  0 
vboxnetflt             23571  0 
vboxdrv               190057  3 vboxnetflt,vboxnetadp,vboxpci
sch_ingress            12744  1 
ipt_REJECT             12502  2 
xt_multiport           12548  2 
iptable_filter         12536  1 
ip_tables              22042  1 iptable_filter
x_tables               19073  4 ip_tables,iptable_filter,xt_multiport,ipt_REJECT
fuse                   61981  1 
pppoe                  17508  2 
pppox                  12594  1 pppoe
ppp_generic            26673  6 pppox,pppoe
slhc                   12674  1 ppp_generic
it87                   30712  0 
hwmon_vid              12430  1 it87
sg                     25874  0 
loop                   22641  0 
snd_hda_codec_hdmi     30783  1 
parport_serial         16737  0 
tuner_simple           17175  1 
tuner_types            16409  1 tuner_simple
tuner                  17497  1 
tvaudio                26661  0 
tda7432                12664  0 
msp3400                30314  0 
ir_lirc_codec          12719  0 
lirc_dev               17031  1 ir_lirc_codec
ir_mce_kbd_decoder     12615  0 
snd_hda_codec_realtek   188748  1 
ir_sony_decoder        12435  0 
ir_jvc_decoder         12433  0 
gspca_stv06xx          23708  0 
snd_usb_audio          84836  2 
ir_rc6_decoder         12433  0 
bttv                  102278  0 
ir_rc5_decoder         12433  0 
gspca_main             22764  1 gspca_stv06xx
snd_usbmidi_lib        23420  1 snd_usb_audio
btcx_risc              12555  1 bttv
tveeprom               20593  1 bttv
videobuf_dma_sg        13231  1 bttv
videobuf_core          17825  2 videobuf_dma_sg,bttv
v4l2_common            13222  5 bttv,msp3400,tda7432,tvaudio,tuner
ir_nec_decoder         12433  0 
videodev               70889  7 v4l2_common,gspca_main,bttv,msp3400,tda7432,tvaudio,tuner
v4l2_compat_ioctl32    16655  1 videodev
media                  18148  1 videodev
snd_hda_intel          26345  2 
rc_core                18286  8 ir_rc5_decoder,ir_nec_decoder,bttv,ir_rc6_decoder,ir_jvc_decoder,ir_sony_decoder,ir_mce_kbd_decoder,ir_lirc_codec
snd_seq_midi           12848  0 
snd_hda_codec          78031  3 snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
snd_seq_midi_event     13316  1 snd_seq_midi
snd_bt87x              13440  1 
snd_rawmidi            23060  2 snd_seq_midi,snd_usbmidi_lib
snd_hwdep              13186  2 snd_hda_codec,snd_usb_audio
evdev                  17562  7 
snd_pcm_oss            36985  0 
psmouse                64455  0 
radeon                643284  2 
snd_mixer_oss          17916  1 snd_pcm_oss
sp5100_tco             12900  0 
snd_seq                45093  2 snd_seq_midi_event,snd_seq_midi
pcspkr                 12579  0 
edac_mce_amd           17103  0 
serio_raw              12931  0 
k10temp                12611  0 
ttm                    48725  1 radeon
snd_pcm                63900  6 snd_pcm_oss,snd_bt87x,snd_hda_codec,snd_hda_intel,snd_usb_audio,snd_hda_codec_hdmi
edac_core              35258  0 
i2c_piix4              12536  0 
snd_seq_device         13176  3 snd_seq,snd_rawmidi,snd_seq_midi
drm_kms_helper         27227  1 radeon
drm                   167670  4 drm_kms_helper,ttm,radeon
power_supply           13475  1 radeon
snd_page_alloc         13003  3 snd_pcm,snd_bt87x,snd_hda_intel
i2c_algo_bit           12841  2 radeon,bttv
snd_timer              22917  2 snd_pcm,snd_seq
i2c_core               19780  14 i2c_algo_bit,drm,drm_kms_helper,i2c_piix4,radeon,videodev,v4l2_common,tveeprom,bttv,msp3400,tda7432,tvaudio,tuner,tuner_simple
snd                    52850  25 snd_timer,snd_seq_device,snd_pcm,snd_seq,snd_mixer_oss,snd_pcm_oss,snd_hwdep,snd_rawmidi,snd_bt87x,snd_hda_codec,snd_hda_intel,snd_usbmidi_lib,snd_usb_audio,snd_hda_codec_realtek,snd_hda_codec_hdmi
soundcore              13065  1 snd
parport_pc             22364  1 parport_serial
parport                31858  1 parport_pc
shpchp                 31293  0 
wmi                    13243  0 
processor              28106  0 
button                 12937  0 
thermal_sys            18040  1 processor
ext3                  161867  6 
mbcache                13065  1 ext3
jbd                    56902  1 ext3
sha256_generic         16797  10 
cryptd                 14517  0 
aes_x86_64             16796  80 
aes_generic            33026  1 aes_x86_64
cbc                    12754  40 
dm_crypt               22586  5 
dm_mod                 63545  32 dm_crypt
raid1                  30714  4 
md_mod                 87742  5 raid1
uhci_hcd               26865  0 
usbhid                 36379  1 
ata_generic            12479  0 
hid                    81288  1 usbhid
sd_mod                 36136  12 
crc_t10dif             12348  1 sd_mod
sr_mod                 21899  0 
usb_storage            43870  0 
cdrom                  35401  1 sr_mod
uas                    13296  0 
ohci_hcd               22467  0 
firewire_ohci          35772  0 
firewire_core          48407  1 firewire_ohci
crc_itu_t              12347  1 firewire_core
aic7xxx               108294  0 
pata_jmicron           12472  0 
scsi_transport_spi     23870  1 aic7xxx
xhci_hcd               73162  0 
ahci                   24997  9 
libahci                22860  1 ahci
ehci_hcd               40215  0 
libata                140589  4 libahci,ahci,pata_jmicron,ata_generic
r8169                  46980  0 
mii                    12675  1 r8169
usbcore               128498  13 ehci_hcd,xhci_hcd,ohci_hcd,uas,usb_storage,usbhid,uhci_hcd,snd_usbmidi_lib,gspca_main,snd_usb_audio,gspca_stv06xx
scsi_mod              162458  8 libata,scsi_transport_spi,aic7xxx,uas,usb_storage,sr_mod,sd_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
force_build_link = yes
silent_modules = yes

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=gzip
BOOT=local
DEVICE=
NFSROOT=auto

-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no

-- /etc/crypttab
# <target name>	<source device>		<key file>	<options>
root		/dev/mapper/vg0-root.new	none	luks

-- /proc/mdstat
Personalities : [raid1] 
md125 : active raid1 sdb4[0]
      840005560 blocks super 1.2 [1/1] [U]
      
md126 : active raid1 sdb3[0] sdc3[2]
      566515000 blocks super 1.2 [2/2] [UU]
      
md127 : active raid1 sda2[3] sdc2[4](W) sdb2[1](W)
      50330624 blocks super 1.2 [3/3] [UUU]
      
md0 : active raid1 sdc1[0](W) sdb1[2](W) sda1[1]
      128448 blocks [3/3] [UUU]
      
unused devices: <none>

-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:

/usr/share/initramfs-tools/hooks:
busybox
cryptgnupg
cryptkeyctl
cryptopenct
cryptopensc
cryptpassdev
cryptroot
dmsetup
fuse
keymap
klibc
kmod
lvm2
mdadm
thermal
udev


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/3 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii  cpio               2.11-7
ii  klibc-utils        2.0~rc5-1
ii  module-init-tools  8-2
ii  udev               175-3.1

Versions of packages initramfs-tools recommends:
ii  busybox  1:1.19.3-7

Versions of packages initramfs-tools suggests:
ii  bash-completion  1:1.99-3

-- no debconf information



Reply to: