[osinfo-db PATCH 8/8] opensuse: 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 "install=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@xxxxxxxxxx>
---
 .../opensuse.org/opensuse-autoyast-desktop.xml.in             | 4 ++++
 .../install-script/opensuse.org/opensuse-autoyast-jeos.xml.in | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in b/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
index 5c30292..07261aa 100644
--- a/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
+++ b/data/install-script/opensuse.org/opensuse-autoyast-desktop.xml.in
@@ -129,6 +129,10 @@
             </xsl:otherwise>
           </xsl:choose>
           <xsl:value-of select="script/expected-filename"/>
+          <xsl:if test="script/installation-source = 'network'">
+            <xsl:text> install=</xsl:text>
+            <xsl:call-template name="installation-url"/>
+          </xsl:if>
         </xsl:template>
 
         <xsl:template match="/install-script-config">
diff --git a/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in b/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in
index 8b64d96..74d1977 100644
--- a/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in
+++ b/data/install-script/opensuse.org/opensuse-autoyast-jeos.xml.in
@@ -120,6 +120,10 @@
             </xsl:otherwise>
           </xsl:choose>
           <xsl:value-of select="script/expected-filename"/>
+          <xsl:if test="script/installation-source = 'network'">
+            <xsl:text> install=</xsl:text>
+            <xsl:call-template name="installation-url"/>
+          </xsl:if>
         </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