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

Bug#396159: initramfs-tools: alters behaviour of mdadm on initramfs



Package: initramfs-tools
Version: 0.84
Severity: critical
Justification: breaks unrelated software


Initramfs-tools modifies the behaviour of mdadm when mdadm is run from initramfs.
There is a debconf question for mdadm which defines the raid arrays to start from
initramfs, however initramfs-tools not only disregards this when updating the
images, but it also somehow changes the administrator-supplied answer to mdadm's
debconf question!

>From debconf's config.dat:
Name: mdadm/initrdstart
Template: mdadm/initrdstart
Value: /dev/md0
Owners: mdadm

However, after upgrading initramfs-tools, it's postinst script says

update-initramfs: Generating /boot/initrd.img-2.6.17-2-amd64
I: mdadm: using configuration file: /etc/mdadm/mdadm.conf
I: mdadm: will start all available MD arrays from the initial ramdisk.
I: mdadm: use `dpkg-reconfigure --priority=low mdadm` to change this.

Note that mdadm was not upgraded at the time. On my particular system, this will
render the system unbootable, since initramfs, for some reason, mixes the two raid 
arrays: what should be /dev/md0 becomes /dev/md1 and vice versa. This, of course,
makes the system unbootable since next thin the initramfs tries is mount the wrong
filesystem as /. The only way around this is to make initramfs only start one raid
array, /dev/md0.

Please feel free to downgrade, if you think this is not critical. I think 
running "apt-get upgrade" on a healthy system and ending up with a non-bootable
one certainly merits critical.

-Juha

-- Package-specific info:
-- /proc/cmdline
auto BOOT_IMAGE=Linux ro root=fd00 root=/dev/mapper/system-root

-- /proc/filesystems
	cramfs
	xfs
	ext2

-- lsmod
Module                  Size  Used by
tun                    16896  0 
openafs               660096  3 
des                    21504  7754 
rpcsec_gss_krb5        14600  3877 
auth_rpcgss            55200  3 rpcsec_gss_krb5
nfs                   254136  0 
nfsd                  274576  17 
exportfs               10624  1 nfsd
lockd                  74512  3 nfs,nfsd
nfs_acl                 8320  2 nfs,nfsd
sunrpc                181960  16 rpcsec_gss_krb5,auth_rpcgss,nfs,nfsd,lockd,nfs_acl
ppdev                  14216  0 
parport_pc             43048  0 
lp                     18120  0 
parport                47372  3 ppdev,parport_pc,lp
button                 12448  0 
ac                     10120  0 
battery                15496  0 
ipv6                  302688  56 
xt_multiport            8064  13 
xt_tcpudp               7936  5 
xt_state                6784  9 
ipt_LOG                11392  1 
iptable_mangle          7552  0 
iptable_nat            12804  0 
ip_nat                 25644  1 iptable_nat
ip_conntrack           67364  3 xt_state,iptable_nat,ip_nat
nfnetlink              12232  2 ip_nat,ip_conntrack
iptable_filter          7680  1 
ip_tables              25960  3 iptable_mangle,iptable_nat,iptable_filter
x_tables               23176  6 xt_multiport,xt_tcpudp,xt_state,ipt_LOG,iptable_nat,ip_tables
ext2                   75664  1 
mbcache                14728  1 ext2
loop                   20752  0 
psmouse                47888  0 
serio_raw              12292  0 
i2c_amd8111            10880  0 
i2c_amd756             11908  0 
evdev                  15872  0 
pcspkr                  7936  0 
i2c_core               29312  2 i2c_amd8111,i2c_amd756
shpchp                 46636  0 
pci_hotplug            19716  1 shpchp
hw_random              10920  0 
dm_mirror              26496  0 
dm_snapshot            22200  0 
raid5                  38272  1 
xor                    10512  1 raid5
ide_generic             5632  0 [permanent]
generic                 9860  0 [permanent]
sd_mod                 26240  10 
amd74xx                19504  0 [permanent]
ide_core              157056  3 ide_generic,generic,amd74xx
3w_xxxx                32544  2 
ohci_hcd               25988  0 
tg3                   111492  0 
thermal                20624  0 
processor              36584  1 thermal
fan                     9736  0 
xfs                   548936  6 
dm_mod                 68176  19 dm_mirror,dm_snapshot
raid1                  27904  1 
md_mod                 87964  4 raid5,raid1
sata_mv                25736  7 
libata                 80792  1 sata_mv
scsi_mod              162224  3 sd_mod,3w_xxxx,libata

-- kernel-img.conf
do_symlinks = yes
relative_links = yes
do_bootloader = yes
do_bootfloppy = no
do_initrd = yes
link_in_boot = no


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)

Versions of packages initramfs-tools depends on:
ii  busybox                       1:1.1.3-3  Tiny utilities for small and embed
ii  cpio                          2.6-17     GNU cpio -- a program to manage ar
ii  klibc-utils                   1.4.27-1   small statically-linked utilities 
ii  module-init-tools             3.2.2-3    tools for managing Linux kernel mo
ii  udev                          0.100-2    /dev/ and hotplug management daemo

initramfs-tools recommends no packages.

-- no debconf information



Reply to: