[Libosinfo] [osinfo-db PATCH 3/5] install-script, rhel, desktop: Add AppStream repo for net-install

Fabiano Fidêncio fidencio at redhat.com
Tue Jun 25 13:55:32 UTC 2019


In case AppStream is not enabled, we can't install the "Workstation"
packages on RHEL-8+.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 .../redhat.com/rhel-kickstart-desktop.xml.in         | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in b/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
index 5bd267f..3a3a370 100644
--- a/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
+++ b/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in
@@ -145,6 +145,15 @@
           </xsl:choose>
         </xsl:template>
 
+        <xsl:template name="appstream-url">
+          <xsl:variable name="url">
+            <xsl:call-template name="installation-url"/>
+          </xsl:variable>
+          <xsl:value-of select="substring-before($url, 'BaseOS')"/>
+          <xsl:text>AppStream</xsl:text>
+          <xsl:value-of select="substring-after($url, 'BaseOS')"/>
+        </xsl:template>
+
         <xsl:template match="/install-script-config">
 # Install script for <xsl:value-of select="os/short-id"/> profile <xsl:value-of select="script/profile"/>
 <xsl:if test="script/installation-source = 'media'">
@@ -172,6 +181,9 @@ reboot
 
 <xsl:if test="script/installation-source = 'network'">
 url --url=<xsl:call-template name="installation-url"/>
+  <xsl:if test="os/version > 7 or os/version = '8-unknown'">
+repo --name=AppStream --baseurl=<xsl:call-template name="appstream-url"/>
+  </xsl:if>
 </xsl:if>
 
 %packages
-- 
2.21.0




More information about the Libosinfo mailing list