diff options
| author | Mystery Man <unknown@mandriva.org> | 2002-07-23 11:21:56 +0000 |
|---|---|---|
| committer | Mystery Man <unknown@mandriva.org> | 2002-07-23 11:21:56 +0000 |
| commit | 0a94f3feb8d7841fe8212febcbbdac1073413e05 (patch) | |
| tree | 09f4686118e32ec13377577bbbd0f08e8120836c /perl-install/standalone/drakboot | |
| parent | 127a73d935d78af53d3dadd05d4636f6b717976d (diff) | |
| download | drakx-1_1_8_14mdk.tar drakx-1_1_8_14mdk.tar.gz drakx-1_1_8_14mdk.tar.bz2 drakx-1_1_8_14mdk.tar.xz drakx-1_1_8_14mdk.zip | |
This commit was manufactured by cvs2svn to create tag 'V1_1_8_14mdk'.V1_1_8_14mdk
Diffstat (limited to 'perl-install/standalone/drakboot')
| -rwxr-xr-x | perl-install/standalone/drakboot | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/perl-install/standalone/drakboot b/perl-install/standalone/drakboot deleted file mode 100755 index 174a40847..000000000 --- a/perl-install/standalone/drakboot +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/perl - -use lib qw(/usr/lib/libDrakX); - -use standalone; #- warning, standalone must be loaded very first, for 'explanations' - -use common; -use interactive; -use any; -use bootloader; -use detect_devices; -use fsedit; -use fs; -use c; - -$::isEmbedded = ($::XID, $::CCPID) = "@ARGV" =~ /--embedded (\w+) (\w+)/; -local $_ = join '', @ARGV; - -/-h/ and die "usage: drakboot [--expert] [--testing]\n"; - -$::expert = /-expert/; -$::testing = /-testing/; - -my $in = 'interactive'->vnew('su', 'bootloader'); - -$::lilo_choice = \&lilo_choice; - -if ($in->isa('interactive::gtk')) { - require 'bootlook.pm'; -} else { - lilo_choice(); -} - -!$::isEmbedded and $in->exit(0); -kill(USR1, $::CCPID); -goto ask; - -sub lilo_choice -{ - my $bootloader = arch() =~ /ppc/ ? bootloader::read('', '/etc/yaboot.conf') : bootloader::read('', '/etc/lilo.conf'); - local ($_) = `detectloader`; - $bootloader->{methods} = { lilo => 1, grub => !!/grub/i, if_(arch() =~ /ppc/, yaboot => 1) }; - - my ($all_hds) = catch_cdie { fsedit::hds([ detect_devices::hds() ], {}) } sub { 1 }; - my $fstab = [ fsedit::get_all_fstab($all_hds) ]; - fs::merge_info_from_fstab($fstab); - - $::expert=1; - - ask: - local $::isEmbedded = 0; - 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 %s failed. The following error occured:", $loader), - grep { !/^Warning:/ } cat_("/tmp/.error") ]); - unlink "/tmp/.error"; - goto ask; - } -} |
