summaryrefslogtreecommitdiffstats
path: root/perl-install/fs
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-11-24 16:09:32 +0000
committerOlivier Blin <oblin@mandriva.com>2009-11-24 16:09:32 +0000
commit5f55acfa92bdb9cad5bd76a45725d9c202033acb (patch)
tree1cbca7cebf924315e1c5a54d4fda07a8c725893a /perl-install/fs
parentd00ebe0b5f3c59d1132927a059d0f80dac7aea52 (diff)
downloaddrakx-5f55acfa92bdb9cad5bd76a45725d9c202033acb.tar
drakx-5f55acfa92bdb9cad5bd76a45725d9c202033acb.tar.gz
drakx-5f55acfa92bdb9cad5bd76a45725d9c202033acb.tar.bz2
drakx-5f55acfa92bdb9cad5bd76a45725d9c202033acb.tar.xz
drakx-5f55acfa92bdb9cad5bd76a45725d9c202033acb.zip
unmount swap too when unmounting all partitions
Diffstat (limited to 'perl-install/fs')
-rw-r--r--perl-install/fs/mount.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/fs/mount.pm b/perl-install/fs/mount.pm
index f7bea2ae4..59e3e8bbb 100644
--- a/perl-install/fs/mount.pm
+++ b/perl-install/fs/mount.pm
@@ -222,7 +222,7 @@ sub umount_all {
log::l("unmounting all filesystems");
foreach (sort { $b->{mntpoint} cmp $a->{mntpoint} }
- grep { $_->{mntpoint} && !$_->{real_mntpoint} } @$fstab) {
+ grep { $_->{mntpoint} && !$_->{real_mntpoint} || isSwap($_) } @$fstab) {
umount_part($_);
}
}