summaryrefslogtreecommitdiffstats
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
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)
-rw-r--r--perl-install/diskdrake/interactive.pm10
-rw-r--r--perl-install/install/NEWS1
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