From 920f7d3d0ed4129054a1bf563029cb8e095ec165 Mon Sep 17 00:00:00 2001 From: Stew Benedict Date: Thu, 7 Mar 2002 00:40:00 +0000 Subject: drakboot functionality for PPC --- perl-install/standalone/drakboot | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'perl-install/standalone/drakboot') 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; -- cgit v1.2.1