summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-11-28 12:19:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-11-28 12:19:27 +0000
commit9680d3d9c02b392aa78469e796a095a85e8b3cb7 (patch)
tree6344957523ce60c7cba960009eaf0a2daf924659 /rescue
parenta6711d3fc8bf41092331da9e0f04f5bb0a35257c (diff)
downloaddrakx-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')
-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{$_}");
}