summaryrefslogtreecommitdiffstats
path: root/rescue/partimage_whole_disk
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/partimage_whole_disk')
-rwxr-xr-xrescue/partimage_whole_disk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rescue/partimage_whole_disk b/rescue/partimage_whole_disk
index 2fcd2ee25..bf0360379 100755
--- a/rescue/partimage_whole_disk
+++ b/rescue/partimage_whole_disk
@@ -185,7 +185,7 @@ sub rest_all {
$part->{size} += $hd->cylinder_size if $part->{start} == 1;
}
log::l("adding $part->{device} with size $part->{size}");
- partition_table::add($hd, $part, $extended && 'Extended');
+ partition_table::add($hd, $part, $extended ? 'Extended' : 'Primary');
foreach ('device', if_(!$part->{ratio}, 'size')) {
$part->{$_} eq $wanted_part{$_} or log::l("bad $_ for $part->{device}: $part->{$_} != $wanted_part{$_}");
}