summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-19 22:47:30 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-19 22:47:30 +0000
commitf229f16ba82f98de5d54a8ec71c8a63476dae8c6 (patch)
tree4a4fc557b344f8b8e5cb5ea50b1b341feca54ca9
parent4a2ab263c018b7d6dee71b34e56eaf27d5de8d48 (diff)
downloaddraklive-install-f229f16ba82f98de5d54a8ec71c8a63476dae8c6.tar
draklive-install-f229f16ba82f98de5d54a8ec71c8a63476dae8c6.tar.gz
draklive-install-f229f16ba82f98de5d54a8ec71c8a63476dae8c6.tar.bz2
draklive-install-f229f16ba82f98de5d54a8ec71c8a63476dae8c6.tar.xz
draklive-install-f229f16ba82f98de5d54a8ec71c8a63476dae8c6.zip
detect disks later to make startup faster
-rwxr-xr-xdraklive-install30
1 files changed, 14 insertions, 16 deletions
diff --git a/draklive-install b/draklive-install
index 846f2f5..ec002a7 100755
--- a/draklive-install
+++ b/draklive-install
@@ -54,24 +54,8 @@ sub on_reboot_needed {
my $in = 'interactive'->vnew('su');
$in->{pop_wait_messages} = 0;
-my $all_hds = fsedit::get_hds();
-fs::get_raw_hds('', $all_hds);
-fs::get_info_from_fstab($all_hds);
-my $fstab = [ fs::get::fstab($all_hds) ];
-fs::merge_info_from_mtab($fstab);
-eval { fs::mount::umount_all($fstab) };
-
-$::prefix = '/mnt/install';
-$all_hds = {};
-$fstab = [];
-fs::any::get_hds($all_hds, $fstab, [], {}, 'skip_mtab', $in);
-
-umount_all($fstab);
-
require any;
my $has_running_wm = to_bool(any::running_window_manager());
-
-
$::isWizard = 1;
$::Wizard_no_previous = 1;
$::Wizard_pix_up = "MandrivaOne-install-icon";
@@ -88,6 +72,20 @@ my $title = N("Mandriva Live");
$w->main;
}
+my $all_hds = fsedit::get_hds();
+fs::get_raw_hds('', $all_hds);
+fs::get_info_from_fstab($all_hds);
+my $fstab = [ fs::get::fstab($all_hds) ];
+fs::merge_info_from_mtab($fstab);
+eval { fs::mount::umount_all($fstab) };
+
+$::prefix = '/mnt/install';
+$all_hds = {};
+$fstab = [];
+fs::any::get_hds($all_hds, $fstab, [], {}, 'skip_mtab', $in);
+
+umount_all($fstab);
+
fs::partitioning_wizard::main($in, $all_hds, $fstab, [], undef, {}, 'skip_mtab');
mkdir_p($::prefix) or die "unable to create $::prefix";