From c99cd6fecca05186cb1c5a29a4f1341a7281fd12 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 29 May 2008 15:22:02 +0000 Subject: only read bootloader configuration when configuring it (usefull in chroots) --- perl-install/NEWS | 3 +++ perl-install/standalone/drakboot | 13 +++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'perl-install') diff --git a/perl-install/NEWS b/perl-install/NEWS index ed5f6505c..6f7ed8557 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,6 @@ +- drakboot: + o only read bootloader configuration when configuring it + (usefull in chroots) - draksound: o be more robust when managing /etc/alsa/pulse-default.conf - drakbug: diff --git a/perl-install/standalone/drakboot b/perl-install/standalone/drakboot index d00008ff1..75056571f 100755 --- a/perl-install/standalone/drakboot +++ b/perl-install/standalone/drakboot @@ -44,13 +44,14 @@ fs::get_info_from_fstab($all_hds); my $fstab = [ fs::get::fstab($all_hds) ]; my $cmdline = cat_('/proc/cmdline'); -my $bootloader = bootloader::read($all_hds); -if (!$bootloader) { - $in->ask_okcancel('', N("No bootloader found, creating a new configuration"), 0) or $in->exit; - any::setupBootloaderBeforeStandalone($in->do_pkgs, $bootloader ||= {}, $all_hds, $fstab); -} - +my $bootloader; if (!$in->isa('interactive::gtk') || any { /^--boot$/ } @ARGV) { + $bootloader = bootloader::read($all_hds); + if (!$bootloader) { + $in->ask_okcancel('', N("No bootloader found, creating a new configuration"), 0) or $in->exit; + any::setupBootloaderBeforeStandalone($in->do_pkgs, $bootloader ||= {}, $all_hds, $fstab); + } + $::isWizard = 1; eval { any::setupBootloaderUntilInstalled($in, $bootloader, $all_hds, $fstab, $ENV{SECURE_LEVEL}) }; die if $@ && $@ !~ /^wizcancel/; -- cgit v1.2.1