summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2025-08-22 11:35:00 +0100
committerSerge Schneider <serge@raspberrypi.com>2025-08-22 11:35:00 +0100
commit7cf36c964ba99ff1c75bfcbac4ff53145e377802 (patch)
tree43053c238f33959e97ddecda1c3a4f31def249f3
parentb056b0ba8093a609f00ddb809f12a8e3534ea25f (diff)
parent8887a8834d748124ce29429347ac6758fdf1f2db (diff)
Merge branch 'master' into arm64
-rwxr-xr-xexport-image/05-finalise/01-run.sh18
1 files changed, 11 insertions, 7 deletions
diff --git a/export-image/05-finalise/01-run.sh b/export-image/05-finalise/01-run.sh
index 251b4df..b39c905 100755
--- a/export-image/05-finalise/01-run.sh
+++ b/export-image/05-finalise/01-run.sh
@@ -5,13 +5,17 @@ INFO_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.info"
SBOM_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.sbom"
BMAP_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.bmap"
-on_chroot << EOF
-update-initramfs -k all -c
-if hash hardlink 2>/dev/null; then
- hardlink -t /usr/share/doc
-fi
-install -m 755 -o systemd-timesync -g systemd-timesync -d /var/lib/systemd/timesync/clock
-install -m 644 -o systemd-timesync -g systemd-timesync /dev/null /var/lib/systemd/timesync/clock
+on_chroot <<- EOF
+ update-initramfs -k all -c
+ if hash hardlink 2>/dev/null; then
+ hardlink -t /usr/share/doc
+ fi
+ if [ -f /usr/lib/systemd/system/apt-listchanges.service ]; then
+ python3 -m apt_listchanges.populate_database --profile apt
+ systemctl disable apt-listchanges.timer
+ fi
+ install -m 755 -o systemd-timesync -g systemd-timesync -d /var/lib/systemd/timesync/clock
+ install -m 644 -o systemd-timesync -g systemd-timesync /dev/null /var/lib/systemd/timesync/clock
EOF
if [ -f "${ROOTFS_DIR}/etc/initramfs-tools/update-initramfs.conf" ]; then