export-image: pre-populate apt-listchanges database
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user