diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-10-20 06:47:52 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-10-20 06:47:52 +0000 |
commit | fd819dc9b4072340e01f969b9e25d42393c602d9 (patch) | |
tree | f558f546d99832d04129d2dddd4abbb0d1da7800 /rescue | |
parent | a60b8b952f83289a6ed0cdec473f640f242f4559 (diff) | |
download | drakx-backup-do-not-use-fd819dc9b4072340e01f969b9e25d42393c602d9.tar drakx-backup-do-not-use-fd819dc9b4072340e01f969b9e25d42393c602d9.tar.gz drakx-backup-do-not-use-fd819dc9b4072340e01f969b9e25d42393c602d9.tar.bz2 drakx-backup-do-not-use-fd819dc9b4072340e01f969b9e25d42393c602d9.tar.xz drakx-backup-do-not-use-fd819dc9b4072340e01f969b9e25d42393c602d9.zip |
make it an option to keep empty_space_at_end_of_disk
Diffstat (limited to 'rescue')
-rwxr-xr-x | rescue/partimage_whole_disk | 3 |
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; |