diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-05-15 03:51:28 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-05-15 03:51:28 +0200 |
commit | 10fc439940f5f2e8ab5053d1587b8bd256944492 (patch) | |
tree | 8d2c3e7a8599399fa0ed0663a9d1541d225997ad /data | |
parent | dea202e366346dae6b39190c49b6076e3e2859c6 (diff) | |
download | vyos-build-10fc439940f5f2e8ab5053d1587b8bd256944492.tar.gz vyos-build-10fc439940f5f2e8ab5053d1587b8bd256944492.zip |
Reduce image bloat.
1. Do not install "recommended" packages
2. Do not keep apt indices in the binary image
3. Clean up firmware packages that are installed by metapackages but are not required for
for network or storage hardware.
4. Revert vim to vim-tiny
Diffstat (limited to 'data')
-rwxr-xr-x | data/live-build-config/hooks/22-cleanup-packages.chroot | 14 | ||||
-rw-r--r-- | data/live-build-config/package-lists/vyos-utils.list.chroot | 2 |
2 files changed, 15 insertions, 1 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 |