summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index 50f9fa890..a0c019c52 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -94,6 +94,12 @@ sub get_fstab(@) {
map { partition_table::get_normal_parts($_) } @_;
}
+sub hasRAID {
+ my $b = 0;
+ map { $b ||= isRAID($_) } get_fstab(@_);
+ $b;
+}
+
sub get_root($) {
my ($fstab) = @_;
$_->{mntpoint} eq "/" and return $_ foreach @$fstab;