[Libosinfo] [PATCH v2 2/3] debian: add installer script

Giuseppe Scrivano gscrivan at redhat.com
Wed Feb 26 14:21:54 UTC 2014


Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
 data/install-scripts/Makefile.am |  1 +
 data/install-scripts/debian.xml  | 63 ++++++++++++++++++++++++++++++++++++++++
 data/oses/debian.xml.in          | 12 ++++++++
 3 files changed, 76 insertions(+)
 create mode 100644 data/install-scripts/debian.xml

diff --git a/data/install-scripts/Makefile.am b/data/install-scripts/Makefile.am
index c310468..442c286 100644
--- a/data/install-scripts/Makefile.am
+++ b/data/install-scripts/Makefile.am
@@ -1,6 +1,7 @@
 
 databasedir = $(pkgdatadir)/db/install-scripts/
 database_DATA =     \
+  debian.xml        \
   fedora.xml        \
   rhel.xml          \
   windows-sif.xml   \
diff --git a/data/install-scripts/debian.xml b/data/install-scripts/debian.xml
new file mode 100644
index 0000000..df9286f
--- /dev/null
+++ b/data/install-scripts/debian.xml
@@ -0,0 +1,63 @@
+<libosinfo version="0.0.1">
+  <install-script id='http://debian.org/scripts/debian/jeos'>
+    <profile>jeos</profile>
+    <expected-filename>debian.ks</expected-filename>
+    <can-pre-install-drivers>true</can-pre-install-drivers>
+    <config>
+      <param name="admin-password" policy="optional"/>
+      <param name="l10n-keyboard" policy="optional" value-map="http://libosinfo.fedorahosted.org/x11-keyboard"/>
+      <param name="l10n-timezone" policy="optional"/>
+      <param name="l10n-language" policy="optional"/>
+    </config>
+    <supported-injection-media>initrd</supported-injection-media>
+    <template>
+      <xsl:stylesheet
+        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+        version="1.0">
+
+        <xsl:output method="text"/>
+
+	<xsl:template match="/install-script-config">
+d-i debian-installer/locale select <xsl:value-of select="config/l10n-language"/>
+d-i console-setup/ask_detect boolean false
+d-i console-setup/layoutcode string <xsl:value-of select="config/l10n-keyboard"/>
+
+d-i netcfg/choose_interface select auto
+d-i netcfg/get_hostname string localhost
+d-i netcfg/get_domain string localdomain
+d-i netcfg/disable_dhcp     boolean false
+d-i mirror/http/proxy	string
+d-i netcfg/wireless_wep string
+
+d-i clock-setup/utc boolean true
+d-i time/zone select <xsl:value-of select="config/l10n-timezone"/>
+
+d-i partman-auto/method string regular
+d-i partman-auto/choose_recipe select home
+d-i partman/confirm_write_new_label boolean true
+d-i partman/choose_partition select finish
+d-i partman/confirm boolean true
+d-i partman/confirm_nooverwrite boolean true
+
+d-i passwd/root-login boolean true
+d-i passwd/make-user boolean false
+d-i passwd/root-password password <xsl:value-of select="config/admin-password"/>
+d-i passwd/root-password-again password <xsl:value-of select="config/admin-password"/>
+
+tasksel tasksel/first multiselect standard
+
+d-i grub-installer/only_debian boolean true
+d-i grub-installer/with_other_os boolean true
+
+d-i apt-setup/security_host string
+d-i apt-setup/services-select multiselect
+d-i apt-setup/volatile_host string
+d-i apt-setup/security_host string
+
+d-i finish-install/reboot_in_progress note
+	</xsl:template>
+      </xsl:stylesheet>
+    </template>
+  </install-script>
+
+</libosinfo>
diff --git a/data/oses/debian.xml.in b/data/oses/debian.xml.in
index 51a4034..a5a1136 100644
--- a/data/oses/debian.xml.in
+++ b/data/oses/debian.xml.in
@@ -136,6 +136,10 @@
         <storage>5368709120</storage>
       </recommended>
     </resources>
+
+    <installer>
+      <script id='http://debian.org/scripts/debian/jeos'/>
+    </installer>
   </os>
 
   <os id="http://debian.org/debian/6">
@@ -202,6 +206,10 @@
       <kernel>install/vmlinuz</kernel>
       <initrd>install/initrd.gz</initrd>
     </media>
+
+    <installer>
+      <script id='http://debian.org/scripts/debian/jeos'/>
+    </installer>
   </os>
 
   <os id="http://debian.org/debian/7">
@@ -249,6 +257,10 @@
       <kernel>install.amd/vmlinuz</kernel>
       <initrd>install.amd/initrd.gz</initrd>
     </media>
+
+    <installer>
+      <script id='http://debian.org/scripts/debian/jeos'/>
+    </installer>
   </os>
 
 </libosinfo>
-- 
1.8.5.3




More information about the Libosinfo mailing list