summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-10-06 14:18:52 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-10-06 14:18:52 +0000
commitaff9fbe2314113929f24c245870bd4312d206400 (patch)
treee30867ed6b148b2c07cb6f0e39bf08fa51d96613 /rescue
parent8efbf609dbbd1e61c3c246d346f4f6f0d64b9ec1 (diff)
downloaddrakx-backup-do-not-use-aff9fbe2314113929f24c245870bd4312d206400.tar
drakx-backup-do-not-use-aff9fbe2314113929f24c245870bd4312d206400.tar.gz
drakx-backup-do-not-use-aff9fbe2314113929f24c245870bd4312d206400.tar.bz2
drakx-backup-do-not-use-aff9fbe2314113929f24c245870bd4312d206400.tar.xz
drakx-backup-do-not-use-aff9fbe2314113929f24c245870bd4312d206400.zip
fix (same behaviour as before, but option save_home_directory really mean what it says)
Diffstat (limited to 'rescue')
-rwxr-xr-xrescue/partimage_whole_disk6
1 files changed, 4 insertions, 2 deletions
diff --git a/rescue/partimage_whole_disk b/rescue/partimage_whole_disk
index 6a4ea0463..069cd7363 100755
--- a/rescue/partimage_whole_disk
+++ b/rescue/partimage_whole_disk
@@ -15,7 +15,9 @@ use Carp::Heavy;
#- help getting the file in make_rescue_img
BEGIN { partition_table::raw::default_type() }
-my %options;
+my %options = (
+ save_home_directory => 1,
+);
my ($server);
if ($ARGV[0] eq '-s') {
@@ -60,7 +62,7 @@ sub save_all {
$_->{saved} = !member($_->{fs_type}, 'ntfs', 'vfat', 'swap');
}
- if ($options{save_home_directory}) {
+ if (!$options{save_home_directory}) {
#- shrink and don't save the last ext3 partition (which is the /home partition)
if (my $part = find { isTrueLocalFS($_) } reverse @$part_list) {
$part->{size} = min($part->{size}, 1024 * 1024 * 2); # not greater than 1GB