1
0
mirror of https://github.com/AlmaLinux/ks2rootfs.git synced 2025-02-21 05:04:31 +00:00

Compare commits

..

No commits in common. "b5c533866794814c0a4d877b44afcfb9a6c54fbb" and "fcc336f00dc1d2ea84566dd14916f4935de20cae" have entirely different histories.

2 changed files with 7 additions and 9 deletions

View File

@ -4,7 +4,7 @@
# ----------------------------------------------------------------------------
FROM almalinux:8 as builder
RUN mkdir -p /mnt/system-root /mnt/system-root/build /mnt/system-root/run/lock; \
RUN mkdir -p /mnt/system-root /mnt/system-root/build; \
dnf install --installroot /mnt/system-root --releasever 8 --setopt=install_weak_deps=False --setopt=tsflags=nodocs -y coreutils-single \
bash \
glibc-minimal-langpack \
@ -14,7 +14,6 @@ RUN mkdir -p /mnt/system-root /mnt/system-root/build /mnt/system-root/run/lock;
jq \
tar \
policycoreutils \
pykickstart \
# Optional include to avoid runtime warning -- starts
libblockdev-mdraid \
libblockdev-crypto \
@ -25,8 +24,7 @@ RUN mkdir -p /mnt/system-root /mnt/system-root/build /mnt/system-root/run/lock;
libblockdev-nvdimm \
libblockdev-mpath \
# Optional include to avoid runtime warning -- ends
rootfiles \
util-linux-ng; \
rootfiles; \
rm -rf /mnt/system-root/var/cache/* ; \
dnf clean all; \
cp /etc/yum.repos.d/* /mnt/system-root/etc/yum.repos.d/ ; \
@ -38,8 +36,8 @@ RUN mkdir -p /mnt/system-root /mnt/system-root/build /mnt/system-root/run/lock;
echo 'container' > /mnt/system-root/etc/dnf/vars/infra; \
# install only en_US.UTF-8 locale files, see
# https://fedoraproject.org/wiki/Changes/Glibc_locale_subpackaging for details
echo '%_install_langs en_US.UTF-8' > /mnt/system-root/etc/rpm/macros.image-language-conf; \
touch /mnt/system-root/etc/machine-id;
echo '%_install_langs en_US.UTF-8' > /mnt/system-root/etc/rpm/macros.image-language-conf ;\
touch /mnt/system-root/etc/machine-id
COPY scripts/ /mnt/system-root/usr/bin

View File

@ -136,9 +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}/rpm-packags
# cat ${BUILD_OUTDIR}/rpm-packags | sed 's/-[0-9].*//g' > ${BUILD_OUTDIR}/pkgs-list-only
# cat ${BUILD_OUTDIR}/rpm-packags | sed 's/.el[0-9].*//g' > ${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.'