From 0f59f0085a6ae8a60abbb97e27f944281a1b425f Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Tue, 17 Nov 2020 15:22:12 +0000 Subject: [PATCH] export-image: get apt lists from public repo --- export-image/01-set-sources/01-run.sh | 2 ++ export-image/04-finalise/01-run.sh | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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