summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-04-03 17:57:58 +0000
committerFrancois Pons <fpons@mandriva.com>2001-04-03 17:57:58 +0000
commitc575ba1f836b16e8dfa87ec10f15d2a4e4dddf46 (patch)
tree9834c781c32a0ed1bdd133318bab55dc463539b1
parente7a9138a43bfc40e9d91d46c702db7c7d22f1f05 (diff)
downloaddrakx-backup-do-not-use-c575ba1f836b16e8dfa87ec10f15d2a4e4dddf46.tar
drakx-backup-do-not-use-c575ba1f836b16e8dfa87ec10f15d2a4e4dddf46.tar.gz
drakx-backup-do-not-use-c575ba1f836b16e8dfa87ec10f15d2a4e4dddf46.tar.bz2
drakx-backup-do-not-use-c575ba1f836b16e8dfa87ec10f15d2a4e4dddf46.tar.xz
drakx-backup-do-not-use-c575ba1f836b16e8dfa87ec10f15d2a4e4dddf46.zip
keep mount point configuration trhough multi-passes of diskdrake and others.
-rw-r--r--perl-install/install_any.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index bd412af41..c24674044 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -775,6 +775,9 @@ sub getHds {
$ok = fsedit::verifyHds($hds, $flags->{readonly}, $ok)
unless $flags->{clearall} || $flags->{clear};
+ #- try to figure out if the same number of hds is available, use them if ok.
+ $ok && $hds && @$hds > 0 && @{$o->{hds} || []} == @$hds and return $ok;
+
$o->{hds} = $hds;
$o->{lvms} = $lvms;
$o->{fstab} = [ fsedit::get_fstab(@$hds, @$lvms) ];