From f6d0c17bd0e4a27c907b0f390acc09c0513913d6 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 18 Aug 2008 18:45:47 +0000 Subject: run remove-unselected-locales and remove-unused-hardware-packages before install --- draklive-install | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'draklive-install') diff --git a/draklive-install b/draklive-install index d0d020f..50a5d1a 100755 --- a/draklive-install +++ b/draklive-install @@ -56,6 +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(); prepare_root($in, $all_hds); copy_root($in, $copy_source); complete_install($in, $all_hds); @@ -175,6 +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 prepare_root { my ($in, $all_hds) = @_; #- create required directories and devices (early to have a consistent root before calling other programs) -- cgit v1.2.1