From c1605384659e833472da8146c4470fdcf546c9a1 Mon Sep 17 00:00:00 2001 From: Nicolas Hicher Date: Mon, 2 Nov 2020 10:58:34 -0500 Subject: [PATCH] yum-minimal: Add centos-stream-repos package for centos-8-stream centos-repos package is not available on centos-8-stream: 2020-11-02 15:35:20.962 | No Match for argument centos-repos 2020-11-02 15:35:20.992 | No Match for argument centos-release-stream The build fails later on install_pkg_manager sed command: 2020-11-02 15:35:22.903 | sed: can't read /var/cache/nodepool/dib_tmp/dib_build.iPSHptNW/mnt/etc/yum.repos.d/*repo: No such file or directory This change ensure centos-stream-repos package is installed to provide /etc/yum.repos.d/*repo files This change replace 'centos-release-stream' package with the new 'centos-stream-release' package [1] [1] https://lists.centos.org/pipermail/centos-devel/2020-September/056069.html Change-Id: I6c397bf7b5797a02e5f006c18ee63c9cdf66b38c --- diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot b/diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot index e9748e3e..56ae87ca 100755 --- a/diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot +++ b/diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot @@ -93,7 +93,7 @@ function _install_repos { if [[ ${DISTRO_NAME} = centos && ${DIB_RELEASE} > "7" ]]; then packages+="centos-repos centos-gpg-keys " if [[ "$DIB_RELEASE" =~ (stream) ]]; then - packages+="centos-release-stream " + packages+="centos-stream-release centos-stream-repos " fi fi