summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/common.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 5985c7181..508e6b31f 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -765,10 +765,10 @@ and returns the mount point and whether it was already mounted.
=cut
sub mount_efivars {
- my $mount_point = '/sys/firmware/efi/efivars';
- my $already_mounted = cat_("$::prefix/proc/mounts") =~ /$mount_point/;
- run_program::run('mount', '-t', 'efivarfs', 'none', "$::prefix$mount_point") if !$already_mounted;
- ("$::prefix$mount_point", $already_mounted);
+ my $mount_point = "$::prefix/sys/firmware/efi/efivars";
+ my $already_mounted = cat_("$::prefix/proc/mounts") =~ /\s$mount_point\s/;
+ run_program::run('mount', '-t', 'efivarfs', 'none', $mount_point) if !$already_mounted;
+ ($mount_point, $already_mounted);
}
=item cmp_kernel_versions($va, $vb)