[Libosinfo] [v6 3/7] debian: add installer script

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Thu Mar 6 21:48:08 UTC 2014


From: Giuseppe Scrivano <gscrivan at redhat.com>

Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
 data/install-scripts/Makefile.am |  1 +
 data/install-scripts/debian.xml  | 73 ++++++++++++++++++++++++++++++++++++++++
 data/oses/debian.xml.in          |  8 +++++
 3 files changed, 82 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..c5c8592
--- /dev/null
+++ b/data/install-scripts/debian.xml
@@ -0,0 +1,73 @@
+<libosinfo version="0.0.1">
+  <install-script id='http://debian.org/scripts/debian/jeos'>
+    <profile>jeos</profile>
+    <expected-filename>preseed.cfg</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>
+    <injection-method>initrd</injection-method>
+    <template>
+      <xsl:stylesheet
+        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+        version="1.0">
+
+        <xsl:output method="text"/>
+
+        <xsl:template match="/command-line">
+            <xsl:text>file=/</xsl:text>
+            <xsl:value-of select="script/expected-filename"/>
+            <xsl:text> debian-installer/locale=</xsl:text>
+            <xsl:value-of select="config/l10n-language"/>
+            <xsl:text> keyboard-configuration/xkb-keymap=</xsl:text>
+            <xsl:value-of select="config/l10n-keyboard"/>
+            <xsl:text> auto-install/enableconsole-setup/ask_detect=false debconf/priority=critical netcfg/choose_interface=auto</xsl:text>
+        </xsl:template>
+
+<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..1ecb2dd 100644
--- a/data/oses/debian.xml.in
+++ b/data/oses/debian.xml.in
@@ -202,6 +202,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 +253,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