On Jul 31, 2006, Alexandre Oliva [off-list ref] wrote:
quoted
mdadm --assemble --scan --homehost='<system>' --auto-update-homehost \
--auto=yes --run
quoted
in your initrd, having set the hostname correctly first. It might do
exactly what you want.
I'll give it a try some time tomorrow, since I won't turn on that
noisy box today any more; my daughter is already asleep :-)
But then, I could use my own desktop to test it :-)
FWIW, here's the patch for Fedora rawhide's mkinitrd that worked for
me. I figured even without --homehost it worked fine, even without
HOMEHOST set in mdadm.conf.
I hope copying mdadm.conf to initrd won't ever hurt, can you think of
any case in which it would?