summaryrefslogtreecommitdiff
path: root/export-image/02-set-sources
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2022-03-18 17:03:26 +0000
committerSerge Schneider <serge@raspberrypi.com>2022-03-21 08:37:25 +0000
commitb0316ae8706e3abe0d4bd2bdf1cda976a6e2e6a7 (patch)
tree31c596c8795a2151200955cb9dd5000491abbba7 /export-image/02-set-sources
parent95ac3cfb3b223dad058c1aee1d8b6e3f5e5b5935 (diff)
Enable userconf-pi on first boot
Diffstat (limited to 'export-image/02-set-sources')
-rwxr-xr-xexport-image/02-set-sources/01-run.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/export-image/02-set-sources/01-run.sh b/export-image/02-set-sources/01-run.sh
new file mode 100755
index 0000000..5f51209
--- /dev/null
+++ b/export-image/02-set-sources/01-run.sh
@@ -0,0 +1,9 @@
+#!/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
+apt-get clean
+EOF