aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-07-02 19:03:44 +0200
committerSven Gothel <[email protected]>2021-07-02 19:03:44 +0200
commit4cba577252c687374b5b92135a0ef0f0e5db66ed (patch)
tree0b4032697fbb7c4df84ab7150da94fa2bbeb2cdf /build.sh
parent7545621fb6f8171bb146739e703184bcab3f19dd (diff)
Size reduction: apt-get install always use 'Recommends 0' & 'Suggests 0', drop cache; dpkg: Remove doc, man, ..
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 35773b5..8f12843 100755
--- a/build.sh
+++ b/build.sh
@@ -21,7 +21,9 @@ EOF
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages-nr")"
if [ -n "$PACKAGES" ]; then
on_chroot << EOF
-apt-get -o APT::Acquire::Retries=3 install --no-install-recommends -y $PACKAGES
+echo "Installing PACKAGES-nr '${PACKAGES}'"
+echo apt-get -o APT::Acquire::Retries=3 --no-install-recommends -y $PACKAGES
+apt-get -o APT::Acquire::Retries=3 --no-install-recommends -y $PACKAGES
EOF
if [ "${USE_QCOW2}" = "1" ]; then
on_chroot << EOF
@@ -36,7 +38,9 @@ EOF
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "${i}-packages")"
if [ -n "$PACKAGES" ]; then
on_chroot << EOF
-apt-get -o APT::Acquire::Retries=3 install -y $PACKAGES
+echo "Installing PACKAGES '${PACKAGES}'"
+echo apt-get -o APT::Acquire::Retries=3 install --no-install-recommends -y $PACKAGES
+apt-get -o APT::Acquire::Retries=3 install --no-install-recommends -y $PACKAGES
EOF
if [ "${USE_QCOW2}" = "1" ]; then
on_chroot << EOF