summaryrefslogtreecommitdiffstats
path: root/draklive-install
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-09-28 20:28:29 +0100
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-09-28 20:28:29 +0100
commitc862d08c00b18328100188c500717f97a9309b4e (patch)
tree94fc1b761011ff14bee9e2699760f32f2e18bd9e /draklive-install
parent449128552985e159e3ca43a41c550f9a9360899d (diff)
downloaddraklive-install-c862d08c00b18328100188c500717f97a9309b4e.tar
draklive-install-c862d08c00b18328100188c500717f97a9309b4e.tar.gz
draklive-install-c862d08c00b18328100188c500717f97a9309b4e.tar.bz2
draklive-install-c862d08c00b18328100188c500717f97a9309b4e.tar.xz
draklive-install-c862d08c00b18328100188c500717f97a9309b4e.zip
Ensure partitioning wizard knows devices have been unmounted (mga#23603)
Commit 4f6b3b5 causes the isMounted flag to be set on all mounted partitions, to ensure they are unmounted before we start partitioning. This flag needs to be cleared when the partitions are unmounted, otherwise the partioning wizard gets confused.
Diffstat (limited to 'draklive-install')
-rwxr-xr-xdraklive-install5
1 files changed, 3 insertions, 2 deletions
diff --git a/draklive-install b/draklive-install
index ce3cb7c..5d128f8 100755
--- a/draklive-install
+++ b/draklive-install
@@ -87,8 +87,9 @@ sub umount_all {
eval { fs::mount::swapoff($_->{device}) };
}
}
- foreach (map { $_->{isMounted} && !isSwap($_) ? "/dev/$_->{device}" : () } @$fstab) {
- system('umount', $_);
+ foreach (grep { $_->{isMounted} && !isSwap($_) } @$fstab) {
+ system('umount', "/dev/$_->{device}");
+ $_->{isMounted} = 0;
}
}