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.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 5269ea25e..ad73e45c8 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -128,6 +128,10 @@ sub add($$$) {
($part->{mntpoint} = 'swap') :
check_mntpoint($part->{mntpoint}, $hds);
+ $part->{mntpoint} eq '/boot' &&
+ $part->{start} + $part->{size} >= 1024 * partition_table::cylinder_size($hd) and
+ die "/boot on cylinder > 1024";
+
partition_table::add($hd, $part);
}