diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/bootloader.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 757b3022e..4d71798f6 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -109,7 +109,8 @@ sub get_label { sub mkinitrd { my ($kernel_version, $bootloader, $entry, $initrd) = @_; - $::testing || -e "$::prefix/$initrd" and return $initrd; + return $initrd if $::testing # testing mode + || -e "$::prefix/$initrd"; # already exists # for /boot on dos partitions when installing on loopback file on dos partition my $loop_boot = fs::loopback::prepare_boot(); |