summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-06 15:20:39 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-06 15:20:39 +0000
commit1b5fd5c2c0b92cc516b16ddaf3d892c475b74db3 (patch)
tree75d71e5606651a1b9f8b1ec828899e8d785956d9 /perl-install
parentf657ba44a1a8563bf32827f3bced082e75cb8697 (diff)
downloaddrakx-backup-do-not-use-1b5fd5c2c0b92cc516b16ddaf3d892c475b74db3.tar
drakx-backup-do-not-use-1b5fd5c2c0b92cc516b16ddaf3d892c475b74db3.tar.gz
drakx-backup-do-not-use-1b5fd5c2c0b92cc516b16ddaf3d892c475b74db3.tar.bz2
drakx-backup-do-not-use-1b5fd5c2c0b92cc516b16ddaf3d892c475b74db3.tar.xz
drakx-backup-do-not-use-1b5fd5c2c0b92cc516b16ddaf3d892c475b74db3.zip
(add): create 3 primaries before creating an extended if DAC960 (/dev/rd/*)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/partition_table.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index 5a849d5bf..aad737c70 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -618,10 +618,11 @@ sub add($$;$$) {
adjustStartAndEnd($hd, $part) unless $forceNoAdjust;
my $e = $hd->{primary}{extended};
+ my $nb_primaries = $hd->{device} =~ /^rd/ ? 3 : 1;
if (arch() =~ /^sparc|ppc/ ||
$primaryOrExtended eq 'Primary' ||
- $primaryOrExtended !~ /Extended/ && is_empty_array_ref($hd->{primary}{normal})) {
+ $primaryOrExtended !~ /Extended/ && @{$hd->{primary}{normal} || []} < $nb_primaries) {
eval { add_primary($hd, $part) };
return unless $@;
}