[Libosinfo] [osinfo-db PATCH v2 11/14] fedora: Adjust command-line for tree based install
Fabiano Fidêncio
fidencio at redhat.com
Thu May 2 14:53:20 UTC 2019
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 at redhat.com>
---
.../fedoraproject.org/fedora-kickstart-desktop.xml.in | 6 ++++++
.../fedoraproject.org/fedora-kickstart-jeos.xml.in | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in b/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in
index f918938..946e784 100644
--- a/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in
+++ b/data/install-script/fedoraproject.org/fedora-kickstart-desktop.xml.in
@@ -108,6 +108,12 @@
</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">
diff --git a/data/install-script/fedoraproject.org/fedora-kickstart-jeos.xml.in b/data/install-script/fedoraproject.org/fedora-kickstart-jeos.xml.in
index 5b5fe8e..4d1e94b 100644
--- a/data/install-script/fedoraproject.org/fedora-kickstart-jeos.xml.in
+++ b/data/install-script/fedoraproject.org/fedora-kickstart-jeos.xml.in
@@ -100,6 +100,12 @@
</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">
--
2.21.0
More information about the Libosinfo
mailing list