summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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