summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index b7243c883..c4e43e148 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -197,6 +197,11 @@ sub allocatePartitions($$) {
for (my $i = 0; $i < @$v; $i += 2) {
my $size = $v->[$i + 1] - $v->[$i];
$e{size} > $size and next;
+
+ if ($v->[$i] + $e{size} > 1024 * partition_table::cylinder_size($hd)) {
+ next if $e{mntpoint} eq "/boot" ||
+ $e{mntpoint} eq "/" && !has_mntpoint("/boot", $hds);
+ }
$e{start} = $v->[$i];
$e{rootDevice} = $hd->{device};
partition_table::adjustStartAndEnd($hd, \%e);