[PATCH 5/5] installer, win7: Use post-installation script

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

 



From: "Zeeshan Ali (Khattak)" <zeeshanak@xxxxxxxxx>

Launch post-installation setup file, windows.cmd at the end of Windows 7
installation as well.

This combined will previous patches in this series, enables out of the
box installation of virtio, and QXL drivers and vdagent for apps making
use of our post-installation drivers API (currently only Boxes).
---
 data/install-scripts/windows-unattend.xml | 24 ++++++++++++++++++++++++
 data/oses/windows.xml.in                  |  1 +
 2 files changed, 25 insertions(+)

diff --git a/data/install-scripts/windows-unattend.xml b/data/install-scripts/windows-unattend.xml
index d4e1b98..73ea11d 100644
--- a/data/install-scripts/windows-unattend.xml
+++ b/data/install-scripts/windows-unattend.xml
@@ -232,6 +232,7 @@
     <param name="target-disk" policy="optional"/>
     <param name="pre-install-drivers-disk" policy="optional"/>
     <param name="pre-install-drivers-location" policy="optional"/>
+    <param name="script-disk" policy="optional"/>
    </config>
     <template>
      <xsl:stylesheet
@@ -251,6 +252,17 @@
         </xsl:choose>
       </xsl:template>
 
+      <xsl:template name="script-disk">
+        <xsl:choose>
+          <xsl:when test="config/script-disk != ''">
+            <xsl:value-of select="config/script-disk"/>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:text>A</xsl:text>
+          </xsl:otherwise>
+        </xsl:choose>
+      </xsl:template>
+
       <xsl:template name="arch">
        <xsl:choose>
         <xsl:when test="config/hardware-arch = 'x86_64'">
@@ -368,6 +380,18 @@
           </xsl:attribute>
           <ComputerName><xsl:value-of select="config/hostname"/></ComputerName>
          </component>
+         <component name="Microsoft-Windows-Deployment" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
+          <xsl:attribute name="processorArchitecture">
+           <xsl:call-template name="arch"/>
+          </xsl:attribute>
+          <RunSynchronous  wcm:action="add">
+           <RunSynchronousCommand>
+            <Order>1</Order>
+            <Path>cmd /C A:\windows.cmd  >c:\windows\osinfo.log 2>&amp;1</Path>
+            <Description>Post installation setup</Description>
+           </RunSynchronousCommand>
+          </RunSynchronous>
+         </component>
         </settings>
        </xsl:if>
        <settings pass="oobeSystem">
diff --git a/data/oses/windows.xml.in b/data/oses/windows.xml.in
index aabb797..482e11c 100644
--- a/data/oses/windows.xml.in
+++ b/data/oses/windows.xml.in
@@ -772,6 +772,7 @@
     <installer>
       <script id='http://microsoft.com/windows/unattend/jeos'/>
       <script id='http://microsoft.com/windows/unattend/desktop'/>
+      <script id='http://microsoft.com/windows/cmd/desktop'/>
     </installer>
 
     <!-- virtio block device driver -->
-- 
1.8.1.2

_______________________________________________
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