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

Fabiano Fidêncio fidencio at redhat.com
Tue Feb 5 19:40:34 UTC 2019


Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 .../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) > 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




More information about the Libosinfo mailing list