summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdata/live-build-config/hooks/22-cleanup-packages.chroot14
-rw-r--r--data/live-build-config/package-lists/vyos-utils.list.chroot2
-rwxr-xr-xscripts/live-build-config4
3 files changed, 18 insertions, 2 deletions
diff --git a/data/live-build-config/hooks/22-cleanup-packages.chroot b/data/live-build-config/hooks/22-cleanup-packages.chroot
new file mode 100755
index 00000000..db1a6bfb
--- /dev/null
+++ b/data/live-build-config/hooks/22-cleanup-packages.chroot
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Clean up packages that were installed for dependencies but are no longer needed
+# and packages installed by metapackages that we'll never need
+
+UNWANTED_PKGS="dahdi-firmware-nonfree \
+ firmware-crystalhd firmware-ivtv \
+ firmware-samsung"
+
+for p in $UNWANTED_PKGS; do
+ apt-get -y remove $p
+done
+
+apt-get -y autoremove
diff --git a/data/live-build-config/package-lists/vyos-utils.list.chroot b/data/live-build-config/package-lists/vyos-utils.list.chroot
index dbf7827c..7579f874 100644
--- a/data/live-build-config/package-lists/vyos-utils.list.chroot
+++ b/data/live-build-config/package-lists/vyos-utils.list.chroot
@@ -10,7 +10,7 @@ socat
telnet
tcpdump
nano
-vim
+vim-tiny
screen
minicom
wakeonlan
diff --git a/scripts/live-build-config b/scripts/live-build-config
index 15df7aa8..b8ad3daa 100755
--- a/scripts/live-build-config
+++ b/scripts/live-build-config
@@ -53,7 +53,9 @@ lb config noauto \
--archive-areas "main contrib non-free" \
--firmware-chroot true \
--updates true \
- --security true
+ --security true \
+ --apt-recommends false \
+ --apt-indices false
"${@}"
"""