[osinfo-db PATCH 1/3] windows, unattend: Fix "arch" template

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

 



Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 .../microsoft.com/windows-unattend-jeos.xml.in             | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/data/install-script/microsoft.com/windows-unattend-jeos.xml.in b/data/install-script/microsoft.com/windows-unattend-jeos.xml.in
index 3fd90e5..f738b86 100644
--- a/data/install-script/microsoft.com/windows-unattend-jeos.xml.in
+++ b/data/install-script/microsoft.com/windows-unattend-jeos.xml.in
@@ -40,8 +40,11 @@
 
 	<xsl:template name="arch">
 	  <xsl:choose>
-	    <xsl:when test="count(config/hardware-arch) &gt; 0">
-	      <xsl:value-of select="config/hardware-arch"/>
+	    <xsl:when test="config/hardware-arch = 'x86_64'">
+          <xsl:text>amd64</xsl:text>
+        </xsl:when>
+	    <xsl:when test="config/hardware-arch = 'i386'">
+          <xsl:text>x86</xsl:text>
 	    </xsl:when>
 	    <xsl:otherwise>
 	      <xsl:text>x86</xsl:text>
-- 
2.20.1

_______________________________________________
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