From f902492a01c974283c9c800ddbd5de651c474c25 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 27 Sep 1999 20:52:11 +0000 Subject: no_comment --- perl-install/fsedit.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'perl-install/fsedit.pm') 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); -- cgit v1.2.1