summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakboot
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-05-22 03:23:11 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-01-02 14:58:12 +0100
commit059b63602f3fabb23b15ef48bd617e0d323b5ba4 (patch)
tree9389f34a04a6f275a0b68dcff9f91b72da17b1e4 /perl-install/standalone/drakboot
parent6c599d6e8303844cbb2a079f376f130c13b8d86b (diff)
downloaddrakx-059b63602f3fabb23b15ef48bd617e0d323b5ba4.tar
drakx-059b63602f3fabb23b15ef48bd617e0d323b5ba4.tar.gz
drakx-059b63602f3fabb23b15ef48bd617e0d323b5ba4.tar.bz2
drakx-059b63602f3fabb23b15ef48bd617e0d323b5ba4.tar.xz
drakx-059b63602f3fabb23b15ef48bd617e0d323b5ba4.zip
further simplify
Diffstat (limited to 'perl-install/standalone/drakboot')
-rwxr-xr-xperl-install/standalone/drakboot10
1 files changed, 3 insertions, 7 deletions
diff --git a/perl-install/standalone/drakboot b/perl-install/standalone/drakboot
index b136ccf61..b4fa43a98 100755
--- a/perl-install/standalone/drakboot
+++ b/perl-install/standalone/drakboot
@@ -32,15 +32,11 @@ use fs;
my $in = 'interactive'->vnew('su');
-my $all_hds;
-my $fstab;
-my $bootloader;
-
-$all_hds = fsedit::get_hds();
+my $all_hds = fsedit::get_hds();
fs::get_raw_hds('', $all_hds);
fs::get_info_from_fstab($all_hds);
-$fstab = [ fs::get::fstab($all_hds) ];
-$bootloader = bootloader::read($all_hds);
+my $fstab = [ fs::get::fstab($all_hds) ];
+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);