summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/interactive.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-03-18 15:40:45 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-03-18 17:16:34 +0100
commitbd6580826178a700c4d3f224e052f6a2983aa1d0 (patch)
treefaf583b0b673fedeabcd2ec4b77384c015159322 /perl-install/diskdrake/interactive.pm
parent2f15a5ce1550c9388b157db2a6ded12590e6aa6e (diff)
downloaddrakx-bd6580826178a700c4d3f224e052f6a2983aa1d0.tar
drakx-bd6580826178a700c4d3f224e052f6a2983aa1d0.tar.gz
drakx-bd6580826178a700c4d3f224e052f6a2983aa1d0.tar.bz2
drakx-bd6580826178a700c4d3f224e052f6a2983aa1d0.tar.xz
drakx-bd6580826178a700c4d3f224e052f6a2983aa1d0.zip
fix online resizing not always umounting
when fs was mounted on demande (eg: during installation)
Diffstat (limited to 'perl-install/diskdrake/interactive.pm')
-rw-r--r--perl-install/diskdrake/interactive.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index 1131ba95f..6dfea217b 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -926,11 +926,11 @@ filesystem checks will be run on your next boot into Microsoft Windows®"));
}
if (!run_program::run(@cmd)) {
$nice_resize{$part->{fs_type}} = undef;
- # we just mounted it in order to do online resize but online resize failed:
- if (!$part->{isMounted}) {
- fs::mount::umount($dir);
- unlink($dir);
- }
+ }
+ # umount after online resize if it was mounted on demand:
+ if (!$part->{isMounted}) {
+ fs::mount::umount($dir);
+ unlink($dir);
}
} elsif ($nice_resize{f2fs}) {
run_program::run_or_die("resize.f2fs", devices::make($part->{device}));