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.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index bf7574f5e..8aa73fc2e 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -67,6 +67,13 @@ sub get_fstab(@) {
map { partition_table::get_normal_parts($_) } @_;
}
+sub get_root($) {
+ my ($fstab) = @_;
+ $_->{mntpoint} eq "/" and return $_ foreach @$fstab;
+ undef;
+}
+sub get_root_ { get_root([ get_fstab(@{$_[0]}) ]) }
+
sub suggest_part($$$;$) {
my ($hd, $part, $hds, $suggestions) = @_;
$suggestions ||= \@suggestions;