summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-10-20 06:47:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-10-20 06:47:52 +0000
commitfd819dc9b4072340e01f969b9e25d42393c602d9 (patch)
treef558f546d99832d04129d2dddd4abbb0d1da7800 /rescue
parenta60b8b952f83289a6ed0cdec473f640f242f4559 (diff)
downloaddrakx-fd819dc9b4072340e01f969b9e25d42393c602d9.tar
drakx-fd819dc9b4072340e01f969b9e25d42393c602d9.tar.gz
drakx-fd819dc9b4072340e01f969b9e25d42393c602d9.tar.bz2
drakx-fd819dc9b4072340e01f969b9e25d42393c602d9.tar.xz
drakx-fd819dc9b4072340e01f969b9e25d42393c602d9.zip
make it an option to keep empty_space_at_end_of_disk
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/partimage_whole_disk3
1 files changed, 2 insertions, 1 deletions
diff --git a/rescue/partimage_whole_disk b/rescue/partimage_whole_disk
index 069cd7363..e507c2638 100755
--- a/rescue/partimage_whole_disk
+++ b/rescue/partimage_whole_disk
@@ -17,6 +17,7 @@ BEGIN { partition_table::raw::default_type() }
my %options = (
save_home_directory => 1,
+ empty_space_at_end_of_disk => 0, # 300 * 1024 * 2, # 300MB
);
my ($server);
@@ -184,7 +185,7 @@ sub rest_all {
my %wanted_part = %$part;
if ($part->{ratio}) {
- $part->{size} = $hole->{size};
+ $part->{size} = $hole->{size} - ($options{empty_space_at_end_of_disk} || 0);
} else {
$part->{size} += $hd->{geom}{sectors} if $extended;
$part->{size} += $hd->cylinder_size if $part->{start} == 1;