summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive-install10
1 files changed, 6 insertions, 4 deletions
diff --git a/draklive-install b/draklive-install
index 50a5d1a..e867a35 100755
--- a/draklive-install
+++ b/draklive-install
@@ -56,7 +56,7 @@ sub install_live() {
display_start_message();
init_hds($in, $all_hds, $fstab, $live_media);
ask_partitions_loop($in, $all_hds, $fstab, $copy_source);
- remove_unused_packages();
+ remove_unused_packages($in);
prepare_root($in, $all_hds);
copy_root($in, $copy_source);
complete_install($in, $all_hds);
@@ -176,9 +176,11 @@ sub ask_partitions {
fs::partitioning::format_mount_partitions($in, $all_hds, $fstab);
}
-sub remove_unused_packages() {
- system("/usr/sbin/remove-unselected-locales");
- system("/usr/sbin/remove-unused-hardware-packages");
+sub remove_unused_packages {
+ my ($in) = @_;
+ local $::prefix;
+ require pkgs;
+ pkgs::remove_unused_packages($in, $in->do_pkgs);
}
sub prepare_root {