summaryrefslogtreecommitdiffstats
path: root/perl-install/fsedit.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-01-02 21:45:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-01-02 21:45:04 +0000
commitb707231329f40f0537da5a7a8a6033cf8bb8fbf5 (patch)
tree259609acdea36e2678111f5ecea195d202c58bdb /perl-install/fsedit.pm
parentdba903b20c5e9d89e6dbda4e37d8c87f3b6a4562 (diff)
downloaddrakx-b707231329f40f0537da5a7a8a6033cf8bb8fbf5.tar
drakx-b707231329f40f0537da5a7a8a6033cf8bb8fbf5.tar.gz
drakx-b707231329f40f0537da5a7a8a6033cf8bb8fbf5.tar.bz2
drakx-b707231329f40f0537da5a7a8a6033cf8bb8fbf5.tar.xz
drakx-b707231329f40f0537da5a7a8a6033cf8bb8fbf5.zip
no_comment
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r--perl-install/fsedit.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/fsedit.pm b/perl-install/fsedit.pm
index eef623e9e..6060a1cc7 100644
--- a/perl-install/fsedit.pm
+++ b/perl-install/fsedit.pm
@@ -98,12 +98,13 @@ sub hasRAID {
$b;
}
-sub get_root($) {
- my ($fstab) = @_;
+sub get_root($;$) {
+ my ($fstab, $boot) = @_;
+ if ($boot) { $_->{mntpoint} eq "/boot" and return $_ foreach @$fstab; }
$_->{mntpoint} eq "/" and return $_ foreach @$fstab;
undef;
}
-sub get_root_ { get_root([ get_fstab(@{$_[0]}) ]) }
+sub get_root_ { get_root([ get_fstab(@{$_[0]}) ], $_[1]) }
sub is_one_big_fat {
my ($hds) = @_;