[Yaird-devel] Bug#351183: use "mdadm -Ac partitions --uuid FOO" to
assemble root raid
dean gaudet
dean at arctic.org
Fri Feb 3 02:59:42 UTC 2006
Package: yaird
Version: 0.0.12-3
it's generally preferable to tell mdadm to scan the partitions list to
find raid component devices by UUID rather than specify the device list
explicitly...
for example with an explicit device list you can end up with boot failures
if one of the devices is missing... or if the devices are renamed for
whatever reason.
i suggest the following patch...
thanks
-dean
--- /etc/yaird/Templates.cfg 2006/02/03 02:44:49 1.1
+++ /etc/yaird/Templates.cfg 2006/02/03 02:46:15
@@ -299,8 +299,7 @@
SCRIPT "/init"
BEGIN
!mknod <TMPL_VAR NAME=target> b <TMPL_VAR NAME=major> <TMPL_VAR NAME=minor>
- !mdadm --assemble <TMPL_VAR NAME=target> --uuid <TMPL_VAR NAME=uuid> \
- ! <TMPL_LOOP NAME=components> <TMPL_VAR NAME=dev></TMPL_LOOP>
+ !mdadm -Ac partitions <TMPL_VAR NAME=target> --uuid <TMPL_VAR NAME=uuid>
END SCRIPT
END TEMPLATE
More information about the Yaird-devel
mailing list