diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-10-14 19:29:46 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-10-14 21:41:55 +0200 |
commit | f44c11b561efc565c1d729644bce289ddfab697f (patch) | |
tree | 4ca58d4f88f65b21a611ad6b55cc7184cf2b8f7e | |
parent | 3fd87f03bce1f2b0f5248dd431581a3210956689 (diff) | |
download | anaconda-f44c11b561efc565c1d729644bce289ddfab697f.tar.gz anaconda-f44c11b561efc565c1d729644bce289ddfab697f.tar.xz anaconda-f44c11b561efc565c1d729644bce289ddfab697f.zip |
liveinst: deactivate mdraid arrays before running liveinst (#528235)
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.
-rwxr-xr-x | liveinst/liveinst | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/liveinst/liveinst b/liveinst/liveinst index a37d9233b..faef4880b 100755 --- a/liveinst/liveinst +++ b/liveinst/liveinst @@ -66,6 +66,19 @@ done /sbin/swapoff -a /sbin/lvm vgchange -an --ignorelockingfailure +for i in /dev/md*; do + if [ ! -b $i ]; then + continue + fi + + 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 $*" |