From 98eac4c5d3a55f37dcd77c5b896cb4e67c0034cc Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Fri, 4 Jan 2019 17:52:54 +0000 Subject: Remove unused locales and drivers from source if not persistent. This significantly reduces the time taken to install. --- NEWS | 3 +++ draklive-install | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 2a5ccb5..30e60c3 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +- remove unused locales and drivers from source if not persistent + (this significantly reduces the time taken to install) + 2.18 - create /media in the installed system (mga#24097) - remove orphans after removing unwanted locales / hardware support diff --git a/draklive-install b/draklive-install index 58eb445..59e39be 100755 --- a/draklive-install +++ b/draklive-install @@ -64,12 +64,15 @@ sub install_live() { my $copy_source = $settings{SOURCE} || '/'; + my $persistent = -e '/run/mgalive/persistent'; + display_start_message(); init_hds($in, $all_hds, $fstab); ask_partitions_loop($in, $all_hds, $fstab, $copy_source); + remove_unused_packages($in, $copy_source) if !$persistent; prepare_root($in); copy_root($in, $copy_source); - remove_unused_packages($in, $::prefix); + remove_unused_packages($in, $::prefix) if $persistent; complete_install($in, $all_hds); setup_bootloader($in, $all_hds, $fstab); finish_installation($fstab); -- cgit v1.2.1