From aff9fbe2314113929f24c245870bd4312d206400 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 6 Oct 2005 14:18:52 +0000 Subject: fix (same behaviour as before, but option save_home_directory really mean what it says) --- rescue/partimage_whole_disk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rescue/partimage_whole_disk') 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 -- cgit v1.2.1