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 256e9c743..be375ac31 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -175,7 +175,7 @@ sub add_kernel {
mkinitrd($prefix, $version, $initrd) or undef $initrd;
if ($initrd && $ext ne "-$version") {
$initrd = "/boot/initrd$ext.img";
- symlinkf("initrd-$version.img", "$prefix$initrd");
+ symlinkf("initrd-$version.img", "$prefix$initrd") or cp_af("$prefix/boot/initrd-$version.img", "$prefix$initrd");
}
my $label = $ext =~ /-(default)/ ? $1 : "linux$ext";