Skip to content

Commit

Permalink
[wip] image: create package manifest in chroot
Browse files Browse the repository at this point in the history
rpm doesn't work properly when run on the host.
  • Loading branch information
malt3 committed Dec 12, 2023
1 parent cc869e0 commit aad4627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/base/mkosi.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aad4627

Please sign in to comment.