summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-03-02 11:36:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-03-02 11:36:03 +0000
commitf78cc6a30fe8c22920445eceafdeaad926b08589 (patch)
treeb3ec5300a287b0b1496af4daad81a4fdc36b2106
parent9457bb8983117960600190a257dc033497e2ca70 (diff)
downloaddrakx-f78cc6a30fe8c22920445eceafdeaad926b08589.tar
drakx-f78cc6a30fe8c22920445eceafdeaad926b08589.tar.gz
drakx-f78cc6a30fe8c22920445eceafdeaad926b08589.tar.bz2
drakx-f78cc6a30fe8c22920445eceafdeaad926b08589.tar.xz
drakx-f78cc6a30fe8c22920445eceafdeaad926b08589.zip
(Resize): ensure we call lv_resize from lvm and adjust_* for normal partitions, even for destructive resizes
-rw-r--r--perl-install/diskdrake/interactive.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index ba53acf62..b4072ec4a 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -652,13 +652,15 @@ sub Resize {
system "resize_reiserfs", "-f", "-q", "-s" . $part->{size}/2 . "K", devices::make($part->{device});
} elsif ($nice_resize{xfs}) {
system "xfs_growfs", $part->{mntpoint};
+ }
+
+ if (%nice_resize) {
+ $part->{isFormatted} = 1;
} else {
$part->{notFormatted} = 1;
$part->{isFormatted} = 0;
partition_table::verifyParts($hd);
- return;
}
- $part->{isFormatted} = 1;
if (isLVM($hd)) {
lvm::lv_resize($part, $oldsize) if $size < $oldsize;