summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-09-06 10:43:28 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-09-06 10:43:28 +0000
commit75aba4dcdd3e0a86cdb65382da385a8f9520d49a (patch)
tree4320e7ebd5740d3228ac9c8b59d93011e78c897e
parent75080a68e71dbbfb648bdab7e0ac62ee41608cb9 (diff)
downloaddrakx-75aba4dcdd3e0a86cdb65382da385a8f9520d49a.tar
drakx-75aba4dcdd3e0a86cdb65382da385a8f9520d49a.tar.gz
drakx-75aba4dcdd3e0a86cdb65382da385a8f9520d49a.tar.bz2
drakx-75aba4dcdd3e0a86cdb65382da385a8f9520d49a.tar.xz
drakx-75aba4dcdd3e0a86cdb65382da385a8f9520d49a.zip
safer
-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;
}