diff options
author | Chris Lumens <clumens@redhat.com> | 2009-10-13 17:16:44 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-10-13 17:26:42 -0400 |
commit | c835d3ea15f1927551d61c904d1c75f8215593fa (patch) | |
tree | a3225a16d4c6dbad5fba0772e9246afe5789c210 /liveinst | |
parent | dd6a1084619969bff51a00a3d3d2dd87d9652636 (diff) | |
download | anaconda-c835d3ea15f1927551d61c904d1c75f8215593fa.tar.gz anaconda-c835d3ea15f1927551d61c904d1c75f8215593fa.tar.xz anaconda-c835d3ea15f1927551d61c904d1c75f8215593fa.zip |
Fix liveinst to (1) not unmount /dev/pts, (2) unmount in order (509632).
Diffstat (limited to 'liveinst')
-rwxr-xr-x | liveinst/liveinst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/liveinst/liveinst b/liveinst/liveinst index eed4e4127..a37d9233b 100755 --- a/liveinst/liveinst +++ b/liveinst/liveinst @@ -58,7 +58,12 @@ fi # devkit-disks is now mounting lots of stuff. for now, let's just try to unmount it all umount /media/* -for mnt in $(cat /proc/mounts |grep ^/dev |grep -v live | awk {'print $2;'}) ; do umount $mnt 2>/dev/null ; done +tac /proc/mounts | grep ^/dev | grep -v live | while read dev mntpoint rest; do + if [ -b $dev ]; then + umount $mntpoint 2>/dev/null + fi +done + /sbin/swapoff -a /sbin/lvm vgchange -an --ignorelockingfailure |