summaryrefslogtreecommitdiffstats
path: root/perl-install/fs
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-05-24 15:31:58 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-05-24 15:31:58 +0000
commit31249ee1742b01f0d210809d03a12d26710ed984 (patch)
tree963518e11314adbc485649e49be0186676f5e8fc /perl-install/fs
parenteae662565f84338e8e2823200c61d45a68ece758 (diff)
downloaddrakx-31249ee1742b01f0d210809d03a12d26710ed984.tar
drakx-31249ee1742b01f0d210809d03a12d26710ed984.tar.gz
drakx-31249ee1742b01f0d210809d03a12d26710ed984.tar.bz2
drakx-31249ee1742b01f0d210809d03a12d26710ed984.tar.xz
drakx-31249ee1742b01f0d210809d03a12d26710ed984.zip
fix raid 0 to be handled as raid
Diffstat (limited to 'perl-install/fs')
-rw-r--r--perl-install/fs/type.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/fs/type.pm b/perl-install/fs/type.pm
index 6134a4633..5ff8210f3 100644
--- a/perl-install/fs/type.pm
+++ b/perl-install/fs/type.pm
@@ -353,7 +353,7 @@ sub isNonMountable {
sub isPartOfLVM { defined $_[0]{lvm} }
sub isPartOfRAID { defined $_[0]{raid} }
sub isPartOfLoopback { defined $_[0]{loopback} }
-sub isRAID { $_[0]{device} =~ /^md/ && $_[0]{level} }
+sub isRAID { $_[0]{device} =~ /^md/ && defined $_[0]{level} }
sub isUBD { $_[0]{device} =~ /^ubd/ } #- should be always true during an $::uml_install
sub isLVM { $_[0]{VG_name} || $_[0]{lv_name} }
sub isLUKS { defined $_[0]{dmcrypt_name} }