summaryrefslogtreecommitdiffstats
path: root/perl-install/raid.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/raid.pm')
-rw-r--r--perl-install/raid.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/raid.pm b/perl-install/raid.pm
index 8b0750ed7..d618a2275 100644
--- a/perl-install/raid.pm
+++ b/perl-install/raid.pm
@@ -193,9 +193,10 @@ sub get_existing {
} else {
fs::type::set_fs_type($md_part, 'ext3');
}
- fs::type::set_isFormatted($md_part, to_bool($type->{fs_type}));
+ my $fs_type = $type && $type->{fs_type};
+ fs::type::set_isFormatted($md_part, to_bool($fs_type));
- log::l("RAID: found $md (raid $md_part->{level}) type $type->{fs_type} with parts $raw_part->{devices}");
+ log::l("RAID: found $md (raid $md_part->{level}) type $fs_type with parts $raw_part->{devices}");
}
$raids;
}