diff options
author | Mystery Man <unknown@mandriva.org> | 2001-11-20 23:35:06 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2001-11-20 23:35:06 +0000 |
commit | 9f1dfb0e6b859cba0ebda5f945987ba6c24a596b (patch) | |
tree | d85d9819673c16e4753109862a2eeb9bfa775e7a /perl-install/standalone/drakboot | |
parent | dee901a3fde82083a630082f04c0139c73ba248f (diff) | |
download | drakx-topic/PCMCIA_CS_DISTRO.tar drakx-topic/PCMCIA_CS_DISTRO.tar.gz drakx-topic/PCMCIA_CS_DISTRO.tar.bz2 drakx-topic/PCMCIA_CS_DISTRO.tar.xz drakx-topic/PCMCIA_CS_DISTRO.zip |
This commit was manufactured by cvs2svn to create branchtopic/PCMCIA_CS_DISTRO
'PCMCIA_CS_DISTRO'.
Diffstat (limited to 'perl-install/standalone/drakboot')
-rwxr-xr-x | perl-install/standalone/drakboot | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/perl-install/standalone/drakboot b/perl-install/standalone/drakboot deleted file mode 100755 index 8a17b4813..000000000 --- a/perl-install/standalone/drakboot +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/perl - -use lib qw(/usr/lib/libDrakX); - - -use common; -use interactive; -use standalone; -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]\n"; - -$::expert = /-expert/; - -my $in = 'interactive'->vnew('su', 'bootloader'); - -require 'bootlook.pm' if $in->isa('interactive_gtk'); -lilo_choice(); - - -sub lilo_choice -{ - my $bootloader = bootloader::read('', '/etc/lilo.conf'); - local ($_) = `detectloader`; - $bootloader->{methods} = { lilo => 1, grub => !!/grub/i }; - - 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: - any::setupBootloader($in, $bootloader, $all_hds, $fstab, $ENV{SECURE_LEVEL}) or $in->exit(0); - eval { bootloader::install('', $bootloader, $fstab, $all_hds->{hds}) }; - - if ($@) { - $in->ask_warn('', - [ _("Installation of LILO failed. The following error occured:"), - grep { !/^Warning:/ } cat_("/tmp/.error") ]); - unlink "/tmp/.error"; - goto ask; - } -} - !$::isEmbedded and $in->exit(0); - kill(USR1, $::CCPID); - goto ask; - |