summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-06-22 01:24:01 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-06-22 01:24:51 +0200
commit758cad916e090668507233aa6083d8ef21e71483 (patch)
tree81d5db0bdc4d341de4ef0e8fd2bf8292b47cff3f /perl-install
parentfbe54fe257e9bcaf13458b404211797b6786e868 (diff)
downloaddrakx-758cad916e090668507233aa6083d8ef21e71483.tar
drakx-758cad916e090668507233aa6083d8ef21e71483.tar.gz
drakx-758cad916e090668507233aa6083d8ef21e71483.tar.bz2
drakx-758cad916e090668507233aa6083d8ef21e71483.tar.xz
drakx-758cad916e090668507233aa6083d8ef21e71483.zip
do not crash if file does not exist
Diffstat (limited to 'perl-install')
-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";