summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Badaire <mbadaire@mandriva.com>2001-07-09 14:55:19 +0000
committerMatthias Badaire <mbadaire@mandriva.com>2001-07-09 14:55:19 +0000
commit091d9832ca4ca68effddfff572cb2b96b4a41c15 (patch)
treea0046396a279ae23c7c37a3de3f2a3895e842ddd
parent6072592ba370e14a046e8689c80e9b9fe6258663 (diff)
downloaddrakx-backup-do-not-use-091d9832ca4ca68effddfff572cb2b96b4a41c15.tar
drakx-backup-do-not-use-091d9832ca4ca68effddfff572cb2b96b4a41c15.tar.gz
drakx-backup-do-not-use-091d9832ca4ca68effddfff572cb2b96b4a41c15.tar.bz2
drakx-backup-do-not-use-091d9832ca4ca68effddfff572cb2b96b4a41c15.tar.xz
drakx-backup-do-not-use-091d9832ca4ca68effddfff572cb2b96b4a41c15.zip
modify lilo.conf to elilo.conf if arch ia64
-rw-r--r--perl-install/bootloader.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index f788142c5..e7a0734fb 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -614,7 +614,7 @@ sub install_lilo ($$) {
if (arch() =~ /ia64/) {
(my $part, $file) = fsedit::file2part($prefix, $fstab, $file);
my %hds = map_index { $_ => "hd$::i" } sort map { $_->{device} } @$hds;
- #- FUCK TO THE GUY WHICH DOESN'T DO perl -cw bootloader.pm #$dev2efi->{$part->{device}} . ":" . $file;
+ $hds->{$part->{device}} . ":" . $file;
} else {
$file
}
@@ -648,7 +648,8 @@ wait %d seconds for default boot.
{
local *F;
local $\ = "\n";
- my $f = "$prefix/etc/lilo.conf";
+ my $f = arch() =~ /ia64/ ? "$prefix/boot/efi/elilo.conf" : "$prefix/etc/lilo.conf";
+
open F, ">$f" or die "cannot create lilo config file: $f";
log::l("writing lilo config to $f");