diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-11-28 12:19:27 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-11-28 12:19:27 +0000 |
commit | 9680d3d9c02b392aa78469e796a095a85e8b3cb7 (patch) | |
tree | 6344957523ce60c7cba960009eaf0a2daf924659 /rescue/partimage_whole_disk | |
parent | a6711d3fc8bf41092331da9e0f04f5bb0a35257c (diff) | |
download | drakx-9680d3d9c02b392aa78469e796a095a85e8b3cb7.tar drakx-9680d3d9c02b392aa78469e796a095a85e8b3cb7.tar.gz drakx-9680d3d9c02b392aa78469e796a095a85e8b3cb7.tar.bz2 drakx-9680d3d9c02b392aa78469e796a095a85e8b3cb7.tar.xz drakx-9680d3d9c02b392aa78469e796a095a85e8b3cb7.zip |
fix restoring many primary partitions
Diffstat (limited to 'rescue/partimage_whole_disk')
-rwxr-xr-x | rescue/partimage_whole_disk | 2 |
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{$_}"); } |