From c862d08c00b18328100188c500717f97a9309b4e Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Fri, 28 Sep 2018 20:28:29 +0100 Subject: 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. --- draklive-install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'draklive-install') 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; } } -- cgit v1.2.1