Skip to content

Commit

Permalink
[wip]
Browse files Browse the repository at this point in the history
  • Loading branch information
malt3 committed Dec 11, 2023
1 parent cc869e0 commit 2e2cf69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions image/base/mkosi.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ 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"
# this is a hack for cleaning up after rpm. For some reason, using rpm here leaks tempfiles into the buildroot
rm -rf "${BUILDROOT}"/home/*/.cache
cp "${BUILDROOT}/usr/share/constellation/packagemanifest" "${OUTPUTDIR}/"

# copy rpmdb to outputs
Expand Down

0 comments on commit 2e2cf69

Please sign in to comment.