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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 .../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 &gt; 7 or os/version = '8-unknown'">
+repo --name=AppStream --baseurl=<xsl:call-template name="appstream-url"/>
+  </xsl:if>
 </xsl:if>
 
 %packages
-- 
2.21.0

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux