summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/partition_table.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index 28278e1b3..632085b26 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -588,7 +588,7 @@ sub next {
sub next_start {
my ($hd, $part) = @_;
my $next = &next($hd, $part);
- $next ? $next->{start} : $hd->{totalsectors};
+ $next ? $next->{start} : $hd->last_usable_sector;
}
sub load {