#6 Add base module platform Provides so DNF can auto-discover modular platform
Closed 2 years ago by bstinson. Opened 2 years ago by ngompa.
rpms/ ngompa/centos-release c8-add-base-module-platform-provides  into  c8

file modified
+7 -2

@@ -27,7 +27,7 @@ 


  Name:           centos-release

  Version:        %{upstream_rel}

- Release:        %{centos_rel}.0.7%{?dist}

+ Release:        %{centos_rel}.0.8%{?dist}

  Summary:        %{product_family} release file

  Group:          System Environment/Base

  License:        GPLv2

@@ -44,6 +44,7 @@ 

  Provides:       redhat-release = %{upstream_rel_long}

  Provides:       system-release = %{upstream_rel_long}

  Provides:       system-release(releasever) = %{base_release_version}

+ Provides:       base-module(platform:el%{base_release_version})


  Provides:       centos-release-eula

  Provides:       redhat-release-eula

@@ -130,7 +131,7 @@ 


  ID_LIKE="rhel fedora"


- PLATFORM_ID="platform:el%{full_release_version}"

+ PLATFORM_ID="platform:el%{base_release_version}"

  PRETTY_NAME="%{product_family} %{full_release_version} (%{release_name})"



@@ -248,6 +249,10 @@ 




+ * Thu Jan 02 2020 Neal Gompa <ngompa@centosproject.org> - 8-1.0.8

+ - Add base module platform Provides so DNF can auto-discover modular platform

+ - Fix the PLATFORM_ID definition in os-release(5) to use base_release_version macro


  * Thu Dec 19 2019 bstinson@centosproject.org - 8-1.0.7

  - Typo fixes

  - Disable the HA repo by default

In cases where CentOS 8 chroots are being made from scratch and modular
content will be used as part of the initial install, DNF fails to resolve
modular dependencies because it cannot discover the modular platform.

DNF does modular platform discovery in two ways:

  • Reading the PLATFORM_ID from os-release(5)
  • Reading the package providing system-release for base-module() Provides

The former method works on an existing CentOS 8 environment, but when
trying to produce a brand new one without an existing reference or
manual setting of the value, DNF relies on the latter method.

This declaration did not exist, which caused tools like appliance-creator,
livecd-creator, kiwi, and others to fail to be able to resolve modular dependencies,
essentially blocking the usage of modules with these tools.

In addition, trivially fix the PLATFORM_ID definition in os-release(5)
to be set using %base_release_version like the base-module() Provides does.

Reference: https://bugs.centos.org/view.php?id=16877#c35920

Signed-off-by: Neal Gompa ngompa@centosproject.org

rebased onto 89457ca

2 years ago

Pull-Request has been closed by bstinson

2 years ago