summaryrefslogtreecommitdiffstats
path: root/perl-install/partition_table.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-02-09 21:05:34 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-02-09 21:05:34 +0000
commitf0f366d517c87f347f889394416ea21289eec83f (patch)
tree6960d14189bc35bf920f037fe2d43433f945fdf3 /perl-install/partition_table.pm
parentda93dce60a01e338efbea41e3e2134d9c1e03fe2 (diff)
downloaddrakx-f0f366d517c87f347f889394416ea21289eec83f.tar
drakx-f0f366d517c87f347f889394416ea21289eec83f.tar.gz
drakx-f0f366d517c87f347f889394416ea21289eec83f.tar.bz2
drakx-f0f366d517c87f347f889394416ea21289eec83f.tar.xz
drakx-f0f366d517c87f347f889394416ea21289eec83f.zip
no_comment
Diffstat (limited to 'perl-install/partition_table.pm')
-rw-r--r--perl-install/partition_table.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index 16c8a6b0c..518734f5a 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -531,6 +531,8 @@ The only solution is to move your primary partitions to have the hole next to th
sub add($$;$$) {
my ($hd, $part, $primaryOrExtended, $forceNoAdjust) = @_;
+ get_normal_parts($hd) >= ($hd->{device} =~ /^sd/ ? 15 : 63) and cdie "maximum number of partitions handled by linux reached";
+
$part->{notFormatted} = 1;
$part->{isFormatted} = 0;
$part->{rootDevice} = $hd->{device};