summaryrefslogtreecommitdiffstats
path: root/rescue/partimage_whole_disk
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/partimage_whole_disk
parenta6711d3fc8bf41092331da9e0f04f5bb0a35257c (diff)
downloaddrakx-backup-do-not-use-9680d3d9c02b392aa78469e796a095a85e8b3cb7.tar
drakx-backup-do-not-use-9680d3d9c02b392aa78469e796a095a85e8b3cb7.tar.gz
drakx-backup-do-not-use-9680d3d9c02b392aa78469e796a095a85e8b3cb7.tar.bz2
drakx-backup-do-not-use-9680d3d9c02b392aa78469e796a095a85e8b3cb7.tar.xz
drakx-backup-do-not-use-9680d3d9c02b392aa78469e796a095a85e8b3cb7.zip
fix restoring many primary partitions
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{$_}");
}