From bd6580826178a700c4d3f224e052f6a2983aa1d0 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 18 Mar 2020 15:40:45 +0100 Subject: fix online resizing not always umounting when fs was mounted on demande (eg: during installation) --- perl-install/diskdrake/interactive.pm | 10 +++++----- perl-install/install/NEWS | 1 + 2 files changed, 6 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})); diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index f38d5270c..e638098ef 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -4,6 +4,7 @@ o enable to install on F2FS formated partitions o enable to resize NILFS2 o enable to resize XFS during install + o fix online resizing not always umounting fs after resizing - recognize new kernel 5.5 drivers Version 18.24 - 15 March 2020 -- cgit v1.2.1