[Libosinfo] [osinfo-db PATCH v3 11/13] silverblue: Adjust command line for tree based install

Fabiano Fidêncio fidencio at redhat.com
Fri May 3 15:55:51 UTC 2019


tree based installations will require either a "inst.repo=URL" to be
passed to the kernel command line.

Although virt-install automatically appends this to the command line we
generate, this is someething that should be properly generated by us.

https://gitlab.com/libosinfo/osinfo-db/issues/26

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

diff --git a/data/install-script/fedoraproject.org/silverblue-kickstart-desktop.xml.in b/data/install-script/fedoraproject.org/silverblue-kickstart-desktop.xml.in
index ba8a8a3..fd7971e 100644
--- a/data/install-script/fedoraproject.org/silverblue-kickstart-desktop.xml.in
+++ b/data/install-script/fedoraproject.org/silverblue-kickstart-desktop.xml.in
@@ -45,6 +45,21 @@
             </xsl:otherwise>
           </xsl:choose>
           <xsl:value-of select="script/expected-filename"/>
+          <xsl:if test="script/installation-source = 'network'">
+            <xsl:text> inst.repo=</xsl:text>
+            <xsl:call-template name="installation-url"/>
+          </xsl:if>
+        </xsl:template>
+
+        <xsl:template name="installation-url">
+          <xsl:choose>
+            <xsl:when test="config/installation-url != ''">
+              <xsl:value-of select="config/installation-url"/>
+            </xsl:when>
+            <xsl:when test="tree/url != ''">
+              <xsl:value-of select="tree/url"/>
+            </xsl:when>
+          </xsl:choose>
         </xsl:template>
 
         <xsl:template match="/install-script-config">
-- 
2.21.0




More information about the Libosinfo mailing list