summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2020-04-09 20:48:39 +0300
committerStijn Tintel <stijn@linux-ipv6.be>2021-04-15 22:49:38 +0300
commit2ef6835d1ff1a8b7342cdf6f1af368a51aa83d2a (patch)
treef60afaeb500a0183381567629e31e7ccf9897423
parentca9d43cc00276155904726535f31aecfea7decf4 (diff)
tree-wide: add --no-install-recommends to apt-get
There is a truckload of packages being installed, many of which are absolutely not needed. Add --no-install-recommends to apt-get to reduce the image creation time. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
-rw-r--r--lib/util.sh2
-rwxr-xr-xroot_image2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.sh b/lib/util.sh
index 62076a9..c1a82e8 100644
--- a/lib/util.sh
+++ b/lib/util.sh
@@ -47,7 +47,7 @@ checkdep()
if which apt-get > /dev/null 2>&1 && \
which sudo > /dev/null 2>&1; then
echo ", installing $package:"
- sudo apt-get -qq install "$package"
+ sudo apt-get -qq install --no-install-recommends "$package"
else
echo ", please install"
exit 1
diff --git a/root_image b/root_image
index 88bd292..7b5d176 100755
--- a/root_image
+++ b/root_image
@@ -209,7 +209,7 @@ update_packages()
_chroot "$MNT" mount -t proc none /proc
_chroot "$MNT" apt-get -qq update
_chroot "$MNT" apt-get -qq upgrade
- _chroot "$MNT" apt-get -qq install "${PACKAGES[@]}"
+ _chroot "$MNT" apt-get -qq install --no-install-recommends "${PACKAGES[@]}"
rm -f "$MNT/var/cache/apt/archives/*.deb"
}