-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
None
-
rhel-se-cs-plumbers
-
2
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
None
We in Sustaining Engineering would like to have the /etc/os-release file backported to redhat-release-server for RHEL-6-ELS (rhel-6.10).
The missing file is causing trouble in TPS testing for every RHEL-6-ELS package we release.
The content of the file is not that critical, a backport from e.g. rhel-7.9 would work just fine.
Something along the lines of:
diff --git a/redhat-release-server.spec b/redhat-release-server.spec index d4d8c28..5cd12ca 100644 --- a/redhat-release-server.spec +++ b/redhat-release-server.spec @@ -45,6 +45,26 @@ mkdir -p $RPM_BUILD_ROOT/etc echo "%{product_family}%{?variant_titlecase: %{variant_titlecase}} release %{full_release_version}%{?beta: %{beta}} (%{release_name})" > $RPM_BUILD_ROOT/etc/redhat-release ln -s redhat-release $RPM_BUILD_ROOT/etc/system-release +# create /etc/os-release +cat << EOF >>%{buildroot}/etc/os-release +NAME="%{product_family}%{?variant_titlecase: %{variant_titlecase}}" +VERSION="%{full_release_version} (%{release_name})" +ID="rhel" +ID_LIKE="fedora" +VARIANT="%{variant_titlecase}" +VARIANT_ID="%{variant_lowercase}" +VERSION_ID="%{full_release_version}" +PRETTY_NAME="%{product_family}%{?variant_titlecase: %{variant_titlecase}} %{full_release_version}%{?beta: %{beta}} (%{release_name})" +ANSI_COLOR="0;31" +CPE_NAME="cpe:/o:redhat:enterprise_linux:%{full_release_version}:%{?beta:beta}%{!?beta:GA}%{?variant_lowercase::%{variant_lowercase}}" +HOME_URL="https://www.redhat.com/" +BUG_REPORT_URL="https://issues.redhat.com/" + +REDHAT_BUGZILLA_PRODUCT="%{product_family} %{base_release_version}" +REDHAT_BUGZILLA_PRODUCT_VERSION=%{full_release_version} +REDHAT_SUPPORT_PRODUCT="%{product_family}" +REDHAT_SUPPORT_PRODUCT_VERSION="%{full_release_version}%{?beta: %{beta}}" +EOF # write cpe to /etc/system/release-cpe echo "cpe:/o:redhat:enterprise_linux:%{version}:%{?beta:beta}%{!?beta:GA}%{?variant_lowercase::%{variant_lowercase}}" | tr [A-Z] [a-z] > $RPM_BUILD_ROOT/etc/system-release-cpe @@ -97,6 +117,7 @@ rm -rf $RPM_BUILD_ROOT %doc EULA* GPL autorun-template %attr(0644,root,root) /etc/redhat-release /etc/system-release +%config /etc/os-release %config %attr(0644,root,root) /etc/system-release-cpe %config(noreplace) %attr(0644,root,root) /etc/issue %config(noreplace) %attr(0644,root,root) /etc/issue.net
We understand that RHEL-6-ELS is out of your scope and we (Sustaining Engineering) are offering our resources to work on this issue if needed. Just let me know.