summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 9a5085aa3..463f9edf5 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1851,7 +1851,7 @@ sub write_grub2 {
}
output_with_perm($pw_f, 0600, "GRUB2_PASSWORD=$bootloader->{password}");
} else {
- rm_rf($pw_f);
+ unlink($pw_f);
}
my $f = "$::prefix/etc/default/grub";