diff options
Diffstat (limited to 'perl-install/partition_table.pm')
-rw-r--r-- | perl-install/partition_table.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm index 547c1b8e1..feecaa33f 100644 --- a/perl-install/partition_table.pm +++ b/perl-install/partition_table.pm @@ -630,8 +630,12 @@ sub next_start($$) { $next ? $next->{start} : $hd->{totalsectors}; } - -sub raw_add($$) { +sub can_raw_add { + my ($hd) = @_; + $_->{size} || $_->{type} or return foreach @{$hd->{primary}{raw}}; + 1; +} +sub raw_add { my ($raw, $part) = @_; foreach (@$raw) { |