Public bug reported:

the /scripts/local-top/mdadm script is broken in initrd-
img-2.6.20-16-386.  My boot partition is /dev/sda1 and I'm using lvm on
top of a mirror on /dev/sda3 and /dev/sdb1.  I get dumped into the
busybox shell on boot and have to run

mdadm --assemble /dev/md0 /dev/sda3 /dev/sdb1

by hand.

After that, the lvm volumes show up so I type 'exit' and it boots up w/
no problems.

The /scripts/local-top/mdadm script doesn't build the
/etc/mdadm/mdadm.conf file properly.  This chunk of code doesn't work:

CONFIG=/etc/mdadm/mdadm.conf
# in case the hook failed to install a configuration file, this is our last
# attempt... the "emergency procedure"... <drumroll>
if [ ! -e $CONFIG ]; then
  log_warning_msg "missing mdadm.conf file, trying to create one..."
  mkdir -p ${CONFIG%/*}
  echo DEVICE partitions > $CONFIG
  $MDADM --examine --scan >> $CONFIG   <<<<--------------PROBLEM!!!!!!! nothing 
detected here!!!
  if [ -s $CONFIG ]; then
    verbose && log_success_msg "mdadm.conf created."
  else
    verbose && log_failure_msg "could not create mdadm.conf, the boot will 
likely fail."
  fi
  MD_DEVS=all
fi

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
initrd scripts don't detect mirror
https://bugs.launchpad.net/bugs/179941
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to