diff --git a/image/base/mkosi.postinst b/image/base/mkosi.postinst index 9e02d6c321..62b6806541 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