mdadm fails to activate raid partitions in 10.04 (add_mountroot_fail_hook: not found)
Bug #574808 reported by
AlainKnaff
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: initramfs-tools
After upgrading a system with root on a raid partition from 9.04 to 10.04, initramfs fails to mount root in 2.6.32-21-generic.
When booting with an old kernel and initramfs (2.6.28-17), it works.
I get a message about add_mountroot_
And indeed, such symbol is defined in scripts/functions in the old initramfs, but not in the new one.
Removing and re-installing the mdadm package, and rebuilding the new initramfs did not help.
However, if I specify the root fs as /dev/md4 (rather than with its UUID), and then do mdadm -A --scan on the initramfs prompt, everything works fine.
To post a comment you must log in.
Putting the following into /usr/share/ initramfs- tools/scripts/ init-premount/ aaamdadm, and then rebuilding the initramfs seems to help:
#!/bin/sh
mdadm -A --scan