|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
<libosinfo version="0.0.1">
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
See http://www.gnu.org/licenses/ for a copy of the license text -->
|
|
Packit Service |
417c34 |
<install-script id="http://ubuntu.com/ubuntu/preseed/desktop">
|
|
Packit Service |
417c34 |
<profile>desktop</profile>
|
|
Packit Service |
417c34 |
<expected-filename>preseed.cfg</expected-filename>
|
|
Packit Service |
417c34 |
<config>
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
<param name="l10n-keyboard" policy="optional" value-map="http://x.org/x11-keyboard"/>
|
|
Packit Service |
417c34 |
<param name="l10n-timezone" policy="optional"/>
|
|
Packit Service |
417c34 |
<param name="l10n-language" policy="optional"/>
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
<param name="user-login" policy="required"/>
|
|
Packit Service |
417c34 |
<param name="user-realname" policy="optional"/>
|
|
Packit Service |
417c34 |
<param name="user-password" policy="required"/>
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
<param name="target-disk" policy="optional"/>
|
|
Packit Service |
417c34 |
<param name="hostname" policy="optional"/>
|
|
Packit Service |
417c34 |
</config>
|
|
Packit Service |
417c34 |
<injection-method>initrd</injection-method>
|
|
Packit Service |
417c34 |
<needs-internet>true</needs-internet>
|
|
Packit Service |
417c34 |
<template>
|
|
Packit Service |
417c34 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
Packit Service |
417c34 |
<xsl:output method="text"/>
|
|
Packit Service |
417c34 |
<xsl:template match="/command-line">
|
|
Packit Service |
417c34 |
<xsl:text>file=/</xsl:text>
|
|
Packit Service |
417c34 |
<xsl:value-of select="script/expected-filename"/>
|
|
Packit Service |
417c34 |
<xsl:text> locale=</xsl:text>
|
|
Packit Service |
417c34 |
<xsl:value-of select="config/l10n-language"/>
|
|
Packit Service |
417c34 |
<xsl:text> keyboard-configuration/layoutcode=</xsl:text>
|
|
Packit Service |
417c34 |
<xsl:value-of select="config/l10n-keyboard"/>
|
|
Packit Service |
417c34 |
<xsl:text> hostname=</xsl:text>
|
|
Packit Service |
417c34 |
<xsl:call-template name="hostname"/>
|
|
Packit Service |
417c34 |
<xsl:text> priority=critical console-setup/ask_detect=false domain=unassigned-domain interface=auto</xsl:text>
|
|
Packit Service |
417c34 |
<xsl:text> noprompt boot=casper automatic-ubiquity</xsl:text>
|
|
Packit Service |
417c34 |
</xsl:template>
|
|
Packit Service |
417c34 |
<xsl:template name="target-disk">
|
|
Packit Service |
417c34 |
<xsl:choose>
|
|
Packit Service |
417c34 |
<xsl:when test="config/target-disk != ''">
|
|
Packit Service |
417c34 |
<xsl:value-of select="config/target-disk"/>
|
|
Packit Service |
417c34 |
</xsl:when>
|
|
Packit Service |
417c34 |
<xsl:otherwise>
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
<xsl:text>/dev/vda</xsl:text>
|
|
Packit Service |
417c34 |
</xsl:otherwise>
|
|
Packit Service |
417c34 |
</xsl:choose>
|
|
Packit Service |
417c34 |
</xsl:template>
|
|
Packit Service |
417c34 |
<xsl:template name="hostname">
|
|
Packit Service |
417c34 |
<xsl:choose>
|
|
Packit Service |
417c34 |
<xsl:when test="config/hostname != ''">
|
|
Packit Service |
417c34 |
<xsl:value-of select="config/hostname"/>
|
|
Packit Service |
417c34 |
</xsl:when>
|
|
Packit Service |
417c34 |
<xsl:otherwise>
|
|
Packit Service |
417c34 |
<xsl:text>localhost</xsl:text>
|
|
Packit Service |
417c34 |
</xsl:otherwise>
|
|
Packit Service |
417c34 |
</xsl:choose>
|
|
Packit Service |
417c34 |
</xsl:template>
|
|
Packit Service |
417c34 |
<xsl:template match="/install-script-config">
|
|
Packit Service |
417c34 |
d-i pkgsel/include string ubuntu-desktop
|
|
Packit Service |
417c34 |
d-i debian-installer/locale string <xsl:value-of select="config/l10n-language"/>
|
|
Packit Service |
417c34 |
d-i netcfg/get_hostname string <xsl:call-template name="hostname"/>
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
d-i partman-auto/disk string <xsl:call-template name="target-disk"/>
|
|
Packit Service |
417c34 |
d-i partman-auto/init_automatically_partition select Use the largest continuous free space
|
|
Packit Service |
417c34 |
d-i partman-auto/method string regular
|
|
Packit Service |
417c34 |
d-i partman/choose_partition select Finish partitioning and write changes to disk
|
|
Packit Service |
417c34 |
d-i partman/confirm boolean true
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
d-i grub-installer/bootdev string <xsl:call-template name="target-disk"/>
|
|
Packit Service |
417c34 |
d-i partman/confirm_nooverwrite boolean true
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
d-i clock-setup/ntp boolean true
|
|
Packit Service |
417c34 |
d-i clock-setup/utc boolean true
|
|
Packit Service |
417c34 |
d-i time/zone select <xsl:value-of select="config/l10n-timezone"/>
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
d-i passwd/user-fullname string <xsl:value-of select="config/user-realname"/>
|
|
Packit Service |
417c34 |
d-i passwd/username string <xsl:value-of select="config/user-login"/>
|
|
Packit Service |
417c34 |
d-i passwd/user-password password <xsl:value-of select="config/user-password"/>
|
|
Packit Service |
417c34 |
d-i passwd/user-password-again password <xsl:value-of select="config/user-password"/>
|
|
Packit Service |
417c34 |
d-i user-setup/allow-password-weak boolean true
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
d-i finish-install/reboot_in_progress note
|
|
Packit Service |
417c34 |
#Temporary workaround for LP:1258245
|
|
Packit Service |
417c34 |
d-i preseed/early_command string chmod 666 /dev/ttyS0
|
|
Packit Service |
417c34 |
ubiquity ubiquity/summary note
|
|
Packit Service |
417c34 |
ubiquity ubiquity/reboot boolean true
|
|
Packit Service |
417c34 |
|
|
Packit Service |
417c34 |
# Create an osinfo-install-successful file in /root
|
|
Packit Service |
417c34 |
d-i preseed/late_command string in-target \
|
|
Packit Service |
417c34 |
touch /root/osinfo-install-successful
|
|
Packit Service |
417c34 |
</xsl:template>
|
|
Packit Service |
417c34 |
</xsl:stylesheet>
|
|
Packit Service |
417c34 |
</template>
|
|
Packit Service |
417c34 |
</install-script>
|
|
Packit Service |
417c34 |
</libosinfo>
|