diff options
| author | Serge Schneider <serge@raspberrypi.com> | 2025-08-22 11:00:51 +0100 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.com> | 2025-08-22 11:34:43 +0100 |
| commit | 8887a8834d748124ce29429347ac6758fdf1f2db (patch) | |
| tree | 3ce7244da2c311c4dec648e825b2394ffcac0444 /export-image | |
| parent | bd0a6abb8d43f6c7ef7db5bc63cbc2d5ee5e55e1 (diff) | |
export-image: pre-populate apt-listchanges database
Diffstat (limited to 'export-image')
| -rwxr-xr-x | export-image/05-finalise/01-run.sh | 18 |
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 |
