summaryrefslogtreecommitdiffstats
path: root/draklive-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-08-18 18:45:47 +0000
committerOlivier Blin <oblin@mandriva.com>2008-08-18 18:45:47 +0000
commitf6d0c17bd0e4a27c907b0f390acc09c0513913d6 (patch)
tree91933fc0d2d0eb1d2e0bf98f62ce5714a809f388 /draklive-install
parent4460fef169f53a79464a5fcc13cbb49da7db0158 (diff)
downloaddraklive-install-f6d0c17bd0e4a27c907b0f390acc09c0513913d6.tar
draklive-install-f6d0c17bd0e4a27c907b0f390acc09c0513913d6.tar.gz
draklive-install-f6d0c17bd0e4a27c907b0f390acc09c0513913d6.tar.bz2
draklive-install-f6d0c17bd0e4a27c907b0f390acc09c0513913d6.tar.xz
draklive-install-f6d0c17bd0e4a27c907b0f390acc09c0513913d6.zip
run remove-unselected-locales and remove-unused-hardware-packages before install
Diffstat (limited to 'draklive-install')
-rwxr-xr-xdraklive-install6
1 files changed, 6 insertions, 0 deletions
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)