summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-09-27 20:52:11 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-09-27 20:52:11 +0000
commitf902492a01c974283c9c800ddbd5de651c474c25 (patch)
tree4a8eb59f4644fb18ef8e3a448c79061643b60145 /perl-install/fsedit.pm
parent73e7a0f1107be369f7304335082afac4f96ee3d2 (diff)
downloaddrakx-f902492a01c974283c9c800ddbd5de651c474c25.tar
drakx-f902492a01c974283c9c800ddbd5de651c474c25.tar.gz
drakx-f902492a01c974283c9c800ddbd5de651c474c25.tar.bz2
drakx-f902492a01c974283c9c800ddbd5de651c474c25.tar.xz
drakx-f902492a01c974283c9c800ddbd5de651c474c25.zip
no_comment
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);