From 618e9bdf278688931c792d348103afba3e61387a Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Mon, 11 Dec 2023 18:24:29 +0100 Subject: [PATCH] image: create package manifest in chroot rpm doesn't work properly when run on the host. --- image/base/mkosi.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image/base/mkosi.postinst b/image/base/mkosi.postinst index 9e02d6c321f..62b6806541d 100755 --- a/image/base/mkosi.postinst +++ b/image/base/mkosi.postinst @@ -10,7 +10,7 @@ mv "${BUILDROOT}/etc/issue.d" "${BUILDROOT}/usr/lib/issue.d" || true # generate reproducible package manifest mkdir -p "${BUILDROOT}/usr/share/constellation" -rpm -qa --qf '%{name};%{version};%{license}\n' --dbpath "${BUILDROOT}/var/lib/rpm/" | LC_ALL=C sort | tee "${BUILDROOT}/usr/share/constellation/packagemanifest" +mkosi-chroot rpm -qa --qf '%{name};%{version};%{license}\n' --dbpath "/var/lib/rpm/" | LC_ALL=C sort | tee "${BUILDROOT}/usr/share/constellation/packagemanifest" cp "${BUILDROOT}/usr/share/constellation/packagemanifest" "${OUTPUTDIR}/" # copy rpmdb to outputs