[Lunar-commits] <lunar-iso> lunar-install: do not let the kernel auto name the md devices
Stefan Wold
ratler at lunar-linux.org
Sun Sep 21 17:26:47 CEST 2014
commit 264717bf871d53eedbd939e71b4b7e91cba77638
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sun, 21 Sep 2014 17:25:39 +0200
URL: https://github.com/lunar-linux/lunar-iso/commit/264717bf871d53eedbd939e71b4b7e91cba77638
lunar-install: do not let the kernel auto name the md devices
---
lunar-install/sbin/lunar-install | +2/-0
1 file changed, 2 insertions(+)
--- a/lunar-install/sbin/lunar-install
+++ b/lunar-install/sbin/lunar-install
@@ -1218,10 +1218,12 @@ EOF
# Tell dracut to auto enable md devices if used during install
if [ -e /proc/mdstat ]; then
if egrep -q ^md[0-9]+ /proc/mdstat; then
+ mdadm --examine --scan > $TARGET/etc/mdadm.conf
cat <<EOF> $TARGET/etc/dracut.conf.d/02-raid.conf
# Enable software raid automatically using dracut.
# -- AUTO-GENERATED FILE DO NOT MODIFY --
kernel_cmdline+=" rd.auto=1"
+mdadmconf="yes"
EOF
fi
fi
More information about the Lunar-commits
mailing list