[osinfo-db PATCH v2 12/14] silverblue: Adjust command line for tree based install

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

 



Tree based installations will require a kernel-url-argument to be
passed. Let's get this info from the <os/> directly.

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@xxxxxxxxxx>
---
 .../silverblue-kickstart-desktop.xml.in         | 17 +++++++++++++++++
 1 file changed, 17 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..de029a6 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,23 @@
             </xsl:otherwise>
           </xsl:choose>
           <xsl:value-of select="script/expected-filename"/>
+          <xsl:if test="script/installation-source = 'network'">
+            <xsl:text> </xsl:text>
+            <xsl:value-of select="os/kernel-url-argument"/>
+            <xsl:text>=</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

_______________________________________________
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