summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--perl-install/NEWS1
-rw-r--r--perl-install/fs/type.pm2
-rw-r--r--perl-install/install/NEWS1
3 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index adca4eb48..38b5cc7fe 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -4,6 +4,7 @@
- handle raid metadata version
- force raid metadata to be 0.90 if /boot is on raid 1
- fix detection of /var partition
+- fix raid 0 to be handled as raid
Version 13.28 - 19 May 2010
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} }
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index b2f55a013..eef9cb246 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,5 +1,6 @@
- fix detection of /var partition
- force raid metadata to be 0.90 if /boot is on raid 1
+- fix raid 0 to be handled as raid
Version 13.27 - 18 May 2010