diff options
Diffstat (limited to 'perl-install/fsedit.pm')
-rw-r--r-- | perl-install/fsedit.pm | 7 |
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) = @_; |