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.pm11
1 files changed, 7 insertions, 4 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index f28c61f06..36d18be57 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -154,8 +154,11 @@ sub add_kernel($$$$$) {
my $f = "initrd-$kernelVersion$specific.img";
eval { mkinitrd($prefix, "$kernelVersion$specific", (arch() =~ /ia64/ ? "/boot/efi" : "/boot") . "/$f") };
undef $initrdImage if $@;
- symlinkf $f, "$prefix$initrdImage" or $initrdImage = "/boot/$f"
- if $initrdImage;
+ if ($initrdImage) {
+ symlinkf $f, "$prefix$initrdImage" or $initrdImage = "/boot/$f";
+ #- Don't forget to link the initrd to the real image in /boot/efi/ too
+ symlinkf "efi/$f", "$prefix/boot/$f" if (arch() =~ /ia64/);
+ }
}
symlinkf "$vmlinuz", "$prefix/$image" or $image = "/boot/$vmlinuz";
#- On IA-64, kernels and initrd are now always in /boot/efi with the bootloader (elilo)
@@ -777,8 +780,8 @@ sub install_efi_boot_menu {
#- get boot disk and partition
my $part = fsedit::mntpoint2part "/boot/efi", $fstab;
(my ($bootdisk, $bootpart) = ($1, $2)) = ("/dev/" . $part->{device}) =~ m|(/dev/.+)([0-9]+)|;
- print STDERR "DEBUG: boot-disk = $bootdisk\n";
- print STDERR "DEBUG: boot-partition = $bootpart\n";
+ # print STDERR "DEBUG: boot-disk = $bootdisk\n";
+ # print STDERR "DEBUG: boot-partition = $bootpart\n";
die "empty bootdisk or bootpart variables" if !($bootdisk) || !($bootpart);
#- delete other entries with name "Mandrake Linux"