summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2001-11-30 09:14:45 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2001-11-30 09:14:45 +0000
commit66b43a2a2d7a4a016263798fecd3f794ddb23671 (patch)
treef62ab3829193b29efc4191a508111fa5a82bdbca /perl-install/bootloader.pm
parent61b5307bfdd85a3c95b1c2813f2bcfa043856a6b (diff)
downloaddrakx-topic/ia64-8_1.tar
drakx-topic/ia64-8_1.tar.gz
drakx-topic/ia64-8_1.tar.bz2
drakx-topic/ia64-8_1.tar.xz
drakx-topic/ia64-8_1.zip
- Don't forget to link the initrd to the real image in /boot/efi/ tootopic/ia64-8_1
- Remove DEBUG printouts in install_efi_boot_menu
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"