[Libosinfo] [PATCH] win8: Add install script

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Tue Feb 26 15:50:15 UTC 2013


From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>

Added comment in XML as per review.
---
 data/install-scripts/Makefile.am            |  1 +
 data/install-scripts/windows-8-unattend.xml | 45 +++++++++++++++++++++++++++++
 data/oses/windows.xml.in                    |  3 +-
 3 files changed, 48 insertions(+), 1 deletion(-)
 create mode 100644 data/install-scripts/windows-8-unattend.xml

diff --git a/data/install-scripts/Makefile.am b/data/install-scripts/Makefile.am
index c310468..803100c 100644
--- a/data/install-scripts/Makefile.am
+++ b/data/install-scripts/Makefile.am
@@ -7,6 +7,7 @@ database_DATA =     \
   windows-cmd.xml   \
   windows-reg.xml   \
   windows-unattend.xml \
+  windows-8-unattend.xml \
   $(NULL)
 
 EXTRA_DIST = $(database_DATA)
diff --git a/data/install-scripts/windows-8-unattend.xml b/data/install-scripts/windows-8-unattend.xml
new file mode 100644
index 0000000..4518c04
--- /dev/null
+++ b/data/install-scripts/windows-8-unattend.xml
@@ -0,0 +1,45 @@
+<libosinfo version="0.0.1" xmlns:xi="http://www.w3.org/2001/XInclude">
+  <install-script id='http://microsoft.com/windows/8/unattend/jeos'>
+    <profile>jeos</profile>
+    <path-format>dos</path-format>
+    <product-key-format>$$$$$-$$$$$-$$$$$-$$$$$-$$$$$</product-key-format>
+   <expected-filename>autounattend.xml</expected-filename>
+   <can-pre-install-drivers>true</can-pre-install-drivers>
+    <config>
+      <param name="admin-password" policy="optional"/>
+      <param name="hardware-arch" policy="optional"/>
+      <param name="l10n-language" policy="optional" value-map="http://microsoft.com/win/8/l10n-language-reverse"/>
+      <param name="user-login" policy="optional"/>
+      <param name="user-password" policy="optional"/>
+      <param name="user-realname" policy="optional"/>
+      <param name="reg-product-key" policy="required"/> <!-- Product key becomes mandatory in win8 again -->
+      <param name="target-disk" policy="optional"/>
+      <param name="pre-install-drivers-disk" policy="optional"/>
+      <param name="pre-install-drivers-location" policy="optional"/>
+    </config>
+    <xi:include href="windows-unattend.xml" parse="xml" xpointer="xpointer(/libosinfo/install-script[1]/template)"/>
+  </install-script>
+
+  <!-- DESKTOP PROFILE -->
+  <install-script id='http://microsoft.com/windows/8/unattend/desktop'>
+   <profile>desktop</profile>
+   <path-format>dos</path-format>
+   <product-key-format>$$$$$-$$$$$-$$$$$-$$$$$-$$$$$</product-key-format>
+   <expected-filename>autounattend.xml</expected-filename>
+   <can-pre-install-drivers>true</can-pre-install-drivers>
+   <config>
+    <param name="admin-password" policy="optional"/>
+    <param name="hardware-arch" policy="required"/>
+    <param name="l10n-language" policy="optional" value-map="http://microsoft.com/win/8/l10n-language-reverse"/>
+    <param name="user-login" policy="optional"/>
+    <param name="user-password" policy="optional"/>
+    <param name="user-realname" policy="optional"/>
+    <param name="hostname" policy="required"/>
+    <param name="reg-product-key" policy="required"/> <!-- Product key becomes mandatory in win8 again -->
+    <param name="target-disk" policy="optional"/>
+    <param name="pre-install-drivers-disk" policy="optional"/>
+    <param name="pre-install-drivers-location" policy="optional"/>
+   </config>
+   <xi:include href="windows-unattend.xml" parse="xml" xpointer="xpointer(/libosinfo/install-script[2]/template)"/>
+  </install-script>
+</libosinfo>
diff --git a/data/oses/windows.xml.in b/data/oses/windows.xml.in
index 93b8556..3afcf93 100644
--- a/data/oses/windows.xml.in
+++ b/data/oses/windows.xml.in
@@ -865,7 +865,8 @@
     </devices>
 
     <installer>
-      <script id='http://microsoft.com/windows/unattend'/>
+      <script id='http://microsoft.com/windows/8/unattend/jeos'/>
+      <script id='http://microsoft.com/windows/8/unattend/desktop'/>
     </installer>
   </os>
 
-- 
1.8.1.2




More information about the Libosinfo mailing list