summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2020-11-17 15:22:34 +0000
committerSerge Schneider <serge@raspberrypi.com>2020-11-17 15:22:34 +0000
commit041b97464c01ac6453e4aab59dc931220237bc16 (patch)
tree3bdea487b91031255780af0c45786771f7284bf9
parentfbdcaaf4f8f52f9601534b36d312bf06630c6e3f (diff)
parent0f59f0085a6ae8a60abbb97e27f944281a1b425f (diff)
Merge branch 'master' into arm64
-rwxr-xr-xexport-image/01-set-sources/01-run.sh2
-rwxr-xr-xexport-image/04-finalise/01-run.sh1
2 files changed, 2 insertions, 1 deletions
diff --git a/export-image/01-set-sources/01-run.sh b/export-image/01-set-sources/01-run.sh
index 86dea2d..5f51209 100755
--- a/export-image/01-set-sources/01-run.sh
+++ b/export-image/01-set-sources/01-run.sh
@@ -1,5 +1,7 @@
#!/bin/bash -e
+rm -f "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
+find "${ROOTFS_DIR}/var/lib/apt/lists/" -type f -delete
on_chroot << EOF
apt-get update
apt-get -y dist-upgrade
diff --git a/export-image/04-finalise/01-run.sh b/export-image/04-finalise/01-run.sh
index 0864639..91264e5 100755
--- a/export-image/04-finalise/01-run.sh
+++ b/export-image/04-finalise/01-run.sh
@@ -16,7 +16,6 @@ if [ -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config" ]; then
chmod 700 "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config"
fi
-rm -f "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
rm -f "${ROOTFS_DIR}/usr/bin/qemu-arm-static"
if [ "${USE_QEMU}" != "1" ]; then