diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-06-22 01:24:01 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-06-22 01:24:51 +0200 |
commit | 758cad916e090668507233aa6083d8ef21e71483 (patch) | |
tree | 81d5db0bdc4d341de4ef0e8fd2bf8292b47cff3f /perl-install/bootloader.pm | |
parent | fbe54fe257e9bcaf13458b404211797b6786e868 (diff) | |
download | drakx-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/bootloader.pm')
-rw-r--r-- | perl-install/bootloader.pm | 2 |
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"; |