summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rwxr-xr-xdraklive-install5
2 files changed, 7 insertions, 1 deletions
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);