summaryrefslogtreecommitdiffstats
path: root/data/liveinst
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2010-12-15 14:48:05 -0600
committerDavid Lehman <dlehman@redhat.com>2010-12-17 10:26:03 -0600
commit06f0f376e3297eba60e5c2a278eb223a16af305a (patch)
tree4fd59ae040a8b1e49b0ed81d705db839504a9567 /data/liveinst
parent518fb847919d3b4d0ad2e57fb94d889150dd0166 (diff)
downloadanaconda-06f0f376e3297eba60e5c2a278eb223a16af305a.tar.gz
anaconda-06f0f376e3297eba60e5c2a278eb223a16af305a.tar.xz
anaconda-06f0f376e3297eba60e5c2a278eb223a16af305a.zip
Rename anaconda-image-cleanup and use it for all cleanup in liveinst.
New name is anaconda-cleanup.
Diffstat (limited to 'data/liveinst')
-rwxr-xr-xdata/liveinst/liveinst36
1 files changed, 3 insertions, 33 deletions
diff --git a/data/liveinst/liveinst b/data/liveinst/liveinst
index 46213a8a9..7f7f8e52f 100755
--- a/data/liveinst/liveinst
+++ b/data/liveinst/liveinst
@@ -98,38 +98,8 @@ for opt in `cat /proc/cmdline`; do
esac
done
-if [ $IMAGE_INSTALL = 0 ]; then
- # devkit-disks is now mounting lots of stuff. for now, let's just try to
- # unmount it all
- umount /media/* 2>/dev/null
- tac /proc/mounts | grep ^/dev | grep -v live | \
- while read dev mntpoint rest; do
- # hack - don't unmount devices the storage test code requires
- if [ "$mntpoint" = "/mnt/anactest" ]; then
- continue
- fi
-
- if [ -b $dev ]; then
- umount $mntpoint 2>/dev/null
- fi
- 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
-fi
+# unmount anything that shouldn't be mounted prior to install
+anaconda-cleanup $ANACONDA $*
/sbin/udevadm control --env=ANACONDA=1
@@ -143,7 +113,7 @@ fi
# try to teardown the filesystems if this was an image install
if [ $IMAGE_INSTALL = 1 -a $RESCUE = 0 ]; then
- anaconda-image-cleanup
+ anaconda-cleanup
fi
rm -f /dev/.in_sysinit 2>/dev/null