[PATCH] liveinst: deactivate mdraid arrays before running liveinst (#528235)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just like we want things to not be mounted and lvm to be not active when
doing liveinstalls, we also want to start with any mdraid arrays deactivated.
---
 liveinst/liveinst |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/liveinst/liveinst b/liveinst/liveinst
index a37d923..44bb11b 100755
--- a/liveinst/liveinst
+++ b/liveinst/liveinst
@@ -66,6 +66,17 @@ done
 
 /sbin/swapoff -a
 /sbin/lvm vgchange -an --ignorelockingfailure
+for i in /dev/md*; do
+    [ -b $i ] || continue
+
+    case "$i" in
+        /dev/md*p*)
+            ;;
+        *)
+            mdadm --stop $i >/dev/null 2>&1
+            ;;
+    esac
+done
 
 if [ -x /usr/bin/devkit-disks ]; then
     /usr/bin/devkit-disks --inhibit -- /usr/bin/hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive --run "$ANACONDA $*"
-- 
1.6.5.rc2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux