1
0
mirror of https://github.com/AlmaLinux/ks2rootfs.git synced 2024-11-23 10:03:07 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
fcc336f00d
Merge pull request #9 from srbala/main
Fix #4 and #7, adding meta data
2021-09-03 07:56:12 -04:00
7ce5dcb59a
Fix #4 and #7, adding meta data
Signed-off-by: Bala Raman <srbala@gmail.com>
2021-09-03 07:54:16 -04:00
2 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,7 @@ RUN mkdir -p /mnt/system-root /mnt/system-root/build; \
glibc-minimal-langpack \
anaconda-tui \
lorax \
subscription-manager \
jq \
tar \
policycoreutils \

View File

@ -136,7 +136,9 @@ if [ ${BUILD_FLAG_WRITE_META} == 'true' ]; then
echo "$distro_release" > ${BUILD_OUTDIR}/distro-release
fi
# save list of packages installed
jq .[] -r /tmp/dnf.cache/tempfiles.json | awk -F '/' '{print $5}' | sort > ${BUILD_OUTDIR}/pkgs-list
jq .[] -r /tmp/dnf.cache/tempfiles.json | awk -F '/' '{print $5}' | sort > ${BUILD_OUTDIR}/pkgs-list-rpm
cat ${BUILD_OUTDIR}/pkgs-list-rpm | sed 's/-[0-9].*//g' > ${BUILD_OUTDIR}/pkgs-list-only
cat ${BUILD_OUTDIR}/pkgs-list-rpm | sed 's/.el[0-9].*//g' > ${BUILD_OUTDIR}/pkgs-list
echo 'Writting meta data completed.'
else
echo 'Skip writing meta data based on configuration.'