Bug#375879: fails to prepare initramfs if root is on LVM on RAID

martin f krafft madduck at debian.org
Wed Jun 28 16:59:17 UTC 2006


Package: mdadm
Version: 2.5.2-1
Severity: important

If rootfs is on LVM, which in turn is on RAID, the mdadm hook
determines that RAID is not needed:

  ++ df /
  ++ sed -ne 's,^\(/dev/[^[:space:]]\+\).*,\1,p'
  + ROOTRAIDDEV=/dev/mapper/r1vg-root
  + '[' -n /dev/mapper/r1vg-root ']'
  + touch /tmp/mkinitramfs_yc5768/conf/mdadm.conf
  + echo ROOTRAIDDEV=/dev/mapper/r1vg-root
  ++ mdadm --detail /dev/mapper/r1vg-root
  ++ sed -ne 's,[[:space:]]*UUID : ,,p'
  + ROOTUUID=
  + case "$ROOTUUID" in
  + logger -sp syslog.notice -- 'I: mdadm: rootfs not on RAID, not including RAID stuff

This means we have to get rid of the optimisation in the initramfs
and install all kernel modules, as before, and then tell mdadm to
assemble *all* arrays from the initramfs. This sucks because it
basically makes /etc/mdadm/mdadm.conf obsolete, unless the user will
start and stop arrays on the running system.

An alternative would be to move root device detection to the
postinst and have debconf figure out which devices to start.

-- 
Please do not send copies of list mail to me; I read the list!
 
 .''`.     martin f. krafft <madduck at debian.org>
: :'  :    proud Debian developer and author: http://debiansystem.info
`. `'`
  `-  Debian - when you have better things to do than fixing a system
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (GPG/PGP)
Url : http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20060628/82cae408/attachment-0001.pgp


More information about the pkg-mdadm-devel mailing list