From 4d29e3c76f18c129167e597425037f41d8d5ffd8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 22 May 2015 03:18:11 -0400 Subject: simplify after previous commit --- perl-install/standalone/drakboot | 7 ------- 1 file changed, 7 deletions(-) diff --git a/perl-install/standalone/drakboot b/perl-install/standalone/drakboot index 68e67d396..1bb85fa1b 100755 --- a/perl-install/standalone/drakboot +++ b/perl-install/standalone/drakboot @@ -35,11 +35,7 @@ my $in = 'interactive'->vnew('su'); my $all_hds; my $fstab; my $bootloader; -my $cmdline = cat_('/proc/cmdline'); -my $is_bootloader_mode = !$in->isa('interactive::gtk') || any { /^--boot$/ } @ARGV; - -if ($is_bootloader_mode) { $all_hds = fsedit::get_hds(); fs::get_raw_hds('', $all_hds); fs::get_info_from_fstab($all_hds); @@ -49,13 +45,10 @@ if ($is_bootloader_mode) { $in->ask_okcancel('', N("No bootloader found, creating a new configuration"), 0) or $in->exit; any::setupBootloaderBeforeStandalone($in->do_pkgs, $bootloader ||= {}, $all_hds, $fstab); } -} -if ($is_bootloader_mode) { $::isWizard = 1; require security::level; my $level = security::level::from_string(security::level::get()); eval { any::setupBootloaderUntilInstalled($in, $bootloader, $all_hds, $fstab, $level) }; die if $@ && $@ !~ /^wizcancel/; $in->exit(0); -} -- cgit v1.2.1