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 19:29:46 +0200 |
commit | 5552bf5fba5cf20d8862c62a7e0eb343f539eca0 (patch) | |
tree | 517bdd19db8d3f51ad19acd7ca9039b9a98c3896 /liveinst | |
parent | ebdff00a16191763027a501f577056bd1b0b0291 (diff) | |
download | anaconda-5552bf5fba5cf20d8862c62a7e0eb343f539eca0.tar.gz anaconda-5552bf5fba5cf20d8862c62a7e0eb343f539eca0.tar.xz anaconda-5552bf5fba5cf20d8862c62a7e0eb343f539eca0.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.
Diffstat (limited to 'liveinst')
-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 $*" |