[Libosinfo] [PATCH v3 3/7] debian: add installer script

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Mon Mar 3 13:48:16 UTC 2014


On Fri, Feb 28, 2014 at 1:05 PM, Giuseppe Scrivano <gscrivan at redhat.com> wrote:
> Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
> ---

I'm guessing that this doesn't need passing of any commandlines to
kernel? If so, ACK.

>  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..b0aa290
> --- /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-method>initrd</supported-injection-method>
> +    <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
>
> _______________________________________________
> Libosinfo mailing list
> Libosinfo at redhat.com
> https://www.redhat.com/mailman/listinfo/libosinfo



-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124




More information about the Libosinfo mailing list