summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakboot
diff options
context:
space:
mode:
authorStew Benedict <stewb@mandriva.org>2002-03-07 00:40:00 +0000
committerStew Benedict <stewb@mandriva.org>2002-03-07 00:40:00 +0000
commit920f7d3d0ed4129054a1bf563029cb8e095ec165 (patch)
treef54c6cf9af66819184f7e3a98432fc4eef4d3b16 /perl-install/standalone/drakboot
parentcab195d756d2c740385402de7e1cbf67e428f393 (diff)
downloaddrakx-920f7d3d0ed4129054a1bf563029cb8e095ec165.tar
drakx-920f7d3d0ed4129054a1bf563029cb8e095ec165.tar.gz
drakx-920f7d3d0ed4129054a1bf563029cb8e095ec165.tar.bz2
drakx-920f7d3d0ed4129054a1bf563029cb8e095ec165.tar.xz
drakx-920f7d3d0ed4129054a1bf563029cb8e095ec165.zip
drakboot functionality for PPC
Diffstat (limited to 'perl-install/standalone/drakboot')
-rwxr-xr-xperl-install/standalone/drakboot8
1 files changed, 5 insertions, 3 deletions
diff --git a/perl-install/standalone/drakboot b/perl-install/standalone/drakboot
index 693307552..0d35c4498 100755
--- a/perl-install/standalone/drakboot
+++ b/perl-install/standalone/drakboot
@@ -37,9 +37,9 @@ goto ask;
sub lilo_choice
{
- my $bootloader = bootloader::read('', '/etc/lilo.conf');
+ my $bootloader = arch() =~ /ppc/ ? bootloader::read('', '/etc/yaboot.conf') : bootloader::read('', '/etc/lilo.conf');
local ($_) = `detectloader`;
- $bootloader->{methods} = { lilo => 1, grub => !!/grub/i };
+ $bootloader->{methods} = { lilo => 1, grub => !!/grub/i, yaboot => 1 };
my ($all_hds) = catch_cdie { fsedit::hds([ detect_devices::hds() ], {}) } sub { 1 };
my $fstab = [ fsedit::get_all_fstab($all_hds) ];
@@ -52,9 +52,11 @@ sub lilo_choice
any::setupBootloader($in, $bootloader, $all_hds, $fstab, $ENV{SECURE_LEVEL}) or return;
eval { bootloader::install('', $bootloader, $fstab, $all_hds->{hds}) };
+ my $loader = arch() =~ /ppc/ ? "Yaboot" : "LILO";
if ($@) {
$in->ask_warn('',
- [ _("Installation of LILO failed. The following error occured:"),
+ [ _("Installation of $loader failed. The following error
+occured:"),
grep { !/^Warning:/ } cat_("/tmp/.error") ]);
unlink "/tmp/.error";
goto ask;