diff options
Diffstat (limited to 'perl-install/diskdrake')
-rw-r--r-- | perl-install/diskdrake/interactive.pm | 10 |
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})); |