Skip to content
Commits on Source (3)
......@@ -112,7 +112,14 @@ lang <xsl:value-of select="config/l10n-language"/>
network --onboot yes --bootproto dhcp --noipv6 --hostname=<xsl:value-of select="config/hostname"/>
rootpw dummyPa55w0rd # Actual password set (or unset) in %post below
firewall --disabled
<xsl:choose>
<xsl:when test="os/version &lt; 28">
authconfig --enableshadow --enablemd5
</xsl:when>
<xsl:otherwise>
authselect select sssd
</xsl:otherwise>
</xsl:choose>
timezone --utc <xsl:value-of select="config/l10n-timezone"/>
bootloader --location=mbr
zerombr
......
......@@ -110,7 +110,14 @@ skipx
network --bootproto dhcp
rootpw <xsl:value-of select="config/admin-password"/>
firewall --disabled
<xsl:choose>
<xsl:when test="os/version &lt; 28">
authconfig --enableshadow --enablemd5
</xsl:when>
<xsl:otherwise>
authselect select sssd
</xsl:otherwise>
</xsl:choose>
<xsl:if test="os/version &gt; 1">
selinux --enforcing
</xsl:if>
......
<libosinfo version="0.0.1">
<!-- Licensed under the GNU General Public License version 2 or later.
See http://www.gnu.org/licenses/ for a copy of the license text -->
<install-script id='http://fedoraproject.org/silverblue/kickstart/desktop'>
<profile>desktop</profile>
<expected-filename>silverblue.ks</expected-filename>
<config>
<param name="l10n-keyboard" policy="optional" value-map="http://x.org/x11-keyboard"/>
<param name="l10n-language" policy="optional"/>
<param name="l10n-timezone" policy="optional"/>
<param name="hostname" policy="optional"/>
<param name="user-login" policy="required"/>
<param name="user-password" policy="required"/>
<param name="admin-password" policy="required"/>
<param name="script-disk" policy="required"/>
</config>
<injection-method>cdrom</injection-method>
<injection-method>disk</injection-method>
<injection-method>floppy</injection-method>
<template>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>
<xsl:template name="script-disk">
<xsl:variable name="script-disk">
<xsl:value-of select="config/script-disk"/>
</xsl:variable>
<xsl:value-of select="substring-after($script-disk, '/dev/')"/>
</xsl:template>
<xsl:template match="/command-line">
<xsl:text>ks=hd:</xsl:text>
<xsl:call-template name="script-disk"/>
<xsl:text>:/</xsl:text>
<xsl:value-of select="script/expected-filename"/>
</xsl:template>
<xsl:template match="/install-script-config">
# Install script for <xsl:value-of select="os/short-id"/> profile <xsl:value-of select="script/profile"/>
install
keyboard <xsl:value-of select="config/l10n-keyboard"/>
lang <xsl:value-of select="config/l10n-language"/>
network --onboot yes --bootproto dhcp --noipv6 --hostname=<xsl:value-of select="config/hostname"/>
rootpw dummyPa55w0rd # Actual password set (or unset) in %post below
firewall --disabled
timezone --utc <xsl:value-of select="config/l10n-timezone"/>
bootloader --location=mbr
zerombr
clearpart --all --drives=/dev/vda
firstboot --disable
part biosboot --fstype=biosboot --size=1
part /boot --fstype ext4 --recommended --ondisk=/dev/vda
part pv.2 --size=1 --grow --ondisk=/dev/vda
volgroup VolGroup00 --pesize=32768 pv.2
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=768 --grow --maxsize=1536
logvol / --fstype xfs --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
ostreesetup --osname="fedora-workstation" --remote="fedora-workstation" --url="file:///ostree/repo" --ref="fedora/<xsl:value-of select="os/version"/>/<xsl:value-of select="config/hardware-arch"/>/workstation" --nogpg
graphical
reboot
%post --erroronfail
useradd -G wheel <xsl:value-of select="config/user-login"/> # Add user
if test -z '<xsl:value-of select="config/user-password"/>'; then
passwd -d <xsl:value-of select="config/user-login"/> # Make user account passwordless
else
echo '<xsl:value-of select="config/user-password"/>' |passwd --stdin <xsl:value-of select="config/user-login"/>
fi
if test -z '<xsl:value-of select="config/admin-password"/>'; then
passwd -d root # Make root account passwordless
else
echo '<xsl:value-of select="config/admin-password"/>' |passwd --stdin root
fi
# Enable autologin
echo "[daemon]
AutomaticLoginEnable=true
AutomaticLogin=<xsl:value-of select="config/user-login"/>
[security]
[xdmcp]
[greeter]
[chooser]
[debug]
" > /etc/gdm/custom.conf
rm -f /etc/ostree/remotes.d/fedora-workstation.conf
ostree remote add --if-not-exists --set=gpgkeypath=/etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-<xsl:value-of select="os/version"/>-primary fedora-worstation-<xsl:value-of select="os/version"/> 'https://kojipkgs.fedoraproject.org/atomic/workstation/'
%end
</xsl:template>
</xsl:stylesheet>
</template>
</install-script>
</libosinfo>
......@@ -144,6 +144,7 @@
<ask-list config:type="list"/>
<mode>
<confirm config:type="boolean">false</confirm>
<second_stage config:type="boolean">false</second_stage>
<final_reboot config:type="boolean">true</final_reboot>
</mode>
<proposals config:type="list"/>
......@@ -262,7 +263,6 @@ zypper ar -f <xsl:call-template name="repo-update-oss"/> repo-update-oss
<pattern>apparmor</pattern>
<pattern>apparmor_opt</pattern>
<pattern>console</pattern>
<pattern>devel_basis</pattern>
<pattern>enhanced_base</pattern>
<pattern>enhanced_base_opt</pattern>
<pattern>fonts</pattern>
......@@ -271,7 +271,11 @@ zypper ar -f <xsl:call-template name="repo-update-oss"/> repo-update-oss
<pattern>print_server</pattern>
<pattern>sw_management</pattern>
<pattern>yast2_basis</pattern>
<pattern>yast2_install_wf</pattern>
<!-- Those patterns are only present in Leap 42.2 and 42.3 -->
<xsl:if test="contains(os/version, '42')">
<pattern>devel_basis</pattern>
<pattern>yast2_install_wf</pattern>
</xsl:if>
</patterns>
</software>
<sysconfig config:type="list">
......
<libosinfo version="0.0.1">
<!-- Licensed under the GNU General Public License version 2 or later.
See http://www.gnu.org/licenses/ for a copy of the license text -->
<os id="http://alpinelinux.org/alpinelinux/3.5">
<short-id>alpinelinux3.5</short-id>
<_name>Alpine Linux 3.5</_name>
<version>3.5</version>
<_vendor>Alpine Linux Project</_vendor>
<family>linux</family>
<distro>alpinelinux</distro>
<resources arch="all">
<minimum>
<cpu>1000000000</cpu>
<n-cpus>1</n-cpus>
<ram>134217728</ram>
<storage>1073741824</storage>
</minimum>
<recommended>
<cpu>1000000000</cpu>
<n-cpus>1</n-cpus>
<ram>805306368</ram>
<storage>4294967296</storage>
</recommended>
</resources>
<media arch="i686">
<iso>
<volume-id>alpine-.* 3.5.\d x86$</volume-id>
</iso>
</media>
<media arch="x86_64">
<iso>
<volume-id>alpine-.* 3.5.\d x86_64.*</volume-id>
</iso>
</media>
</os>
</libosinfo>
<?xml version="1.0" encoding="UTF-8"?>
<libosinfo version="0.0.1">
<!-- Licensed under the GNU General Public License version 2 or later.
See http://www.gnu.org/licenses/ for a copy of the license text -->
<os id="http://alpinelinux.org/alpinelinux/3.6">
<short-id>alpinelinux3.6</short-id>
<_name>Alpine Linux 3.6</_name>
<version>3.6</version>
<_vendor>Alpine Linux Project</_vendor>
<family>linux</family>
<distro>alpinelinux</distro>
<upgrades id="http://alpinelinux.org/alpinelinux/3.5"/>
<derives-from id="http://alpinelinux.org/alpinelinux/3.5"/>
<resources arch="all">
<minimum>
<cpu>1000000000</cpu>
<n-cpus>1</n-cpus>
<ram>134217728</ram>
<storage>1073741824</storage>
</minimum>
<recommended>
<cpu>1000000000</cpu>
<n-cpus>1</n-cpus>
<ram>805306368</ram>
<storage>4294967296</storage>
</recommended>
</resources>
<media arch="i686">
<iso>
<volume-id>alpine-.* 3.6.\d x86$</volume-id>
</iso>
</media>
<media arch="x86_64">
<iso>
<volume-id>alpine-.* 3.6.\d x86_64.*</volume-id>
</iso>
</media>
</os>
</libosinfo>
<?xml version="1.0" encoding="UTF-8"?>
<libosinfo version="0.0.1">
<!-- Licensed under the GNU General Public License version 2 or later.
See http://www.gnu.org/licenses/ for a copy of the license text -->
<os id="http://alpinelinux.org/alpinelinux/3.7">
<short-id>alpinelinux3.7</short-id>
<_name>Alpine Linux 3.7</_name>
<version>3.7</version>
<_vendor>Alpine Linux Project</_vendor>
<family>linux</family>
<distro>alpinelinux</distro>
<upgrades id="http://alpinelinux.org/alpinelinux/3.6"/>
<derives-from id="http://alpinelinux.org/alpinelinux/3.6"/>
<resources arch="all">
<minimum>
<cpu>1000000000</cpu>
<n-cpus>1</n-cpus>
<ram>134217728</ram>
<storage>1073741824</storage>
</minimum>
<recommended>
<cpu>1000000000</cpu>
<n-cpus>1</n-cpus>
<ram>805306368</ram>
<storage>4294967296</storage>
</recommended>
</resources>
<media arch="i686">
<iso>
<volume-id>alpine-.* 3.7.\d x86$</volume-id>
</iso>
</media>
<media arch="x86_64">
<iso>
<volume-id>alpine-.* 3.7.\d x86_64.*</volume-id>
</iso>
</media>
<media arch="ppc64le">
<iso>
<volume-id>alpine-.* 3.7.\d ppc64le</volume-id>
</iso>
</media>
</os>
</libosinfo>
......@@ -8,5 +8,7 @@
<_vendor>Apple Inc.</_vendor>
<family>darwin</family>
<distro>osx</distro>
<release-date>2001-03-24</release-date>
</os>
</libosinfo>
......@@ -9,5 +9,7 @@
<family>darwin</family>
<distro>osx</distro>
<upgrades id="http://apple.com/macosx/10.0" />
<release-date>2001-09-25</release-date>
</os>
</libosinfo>
......@@ -9,5 +9,7 @@
<family>darwin</family>
<distro>osx</distro>
<upgrades id="http://apple.com/macosx/10.1" />
<release-date>2002-09-24</release-date>
</os>
</libosinfo>
......@@ -9,5 +9,7 @@
<family>darwin</family>
<distro>osx</distro>
<upgrades id="http://apple.com/macosx/10.2" />
<release-date>2003-10-24</release-date>
</os>
</libosinfo>
......@@ -9,5 +9,7 @@
<family>darwin</family>
<distro>osx</distro>
<upgrades id="http://apple.com/macosx/10.3" />
<release-date>2005-04-29</release-date>
</os>
</libosinfo>
......@@ -9,5 +9,7 @@
<family>darwin</family>
<distro>osx</distro>
<upgrades id="http://apple.com/macosx/10.4" />
<release-date>2007-10-26</release-date>
</os>
</libosinfo>
......@@ -10,6 +10,8 @@
<distro>osx</distro>
<upgrades id="http://apple.com/macosx/10.5" />
<release-date>2009-08-28</release-date>
<resources arch="all">
<minimum>
<n-cpus>2</n-cpus>
......
......@@ -10,6 +10,8 @@
<distro>osx</distro>
<upgrades id="http://apple.com/macosx/10.6" />
<release-date>2011-07-20</release-date>
<resources arch="all">
<minimum>
<n-cpus>2</n-cpus>
......
<?xml version="1.0" encoding="UTF-8"?>
<libosinfo version="0.0.1">
<os id="http://asianux.com/asianux/4.6">
<short-id>asianux4.6</short-id>
<name>Asianux Server 4 SP6</name>
<vendor>Asianux Project</vendor>
<family>linux</family>
<distro>asianux</distro>
<codename>Hiranya</codename>
<release-date>2016-07-21</release-date>
<media arch="x86_64">
<iso>
<system-id>LINUX</system-id>
<volume-id>Asianux Server 4 SP6 x86_64</volume-id>
</iso>
<kernel>isolinux/vmlinuz</kernel>
<initrd>isolinux/initrd.img</initrd>
</media>
<media arch="i686">
<iso>
<system-id>LINUX</system-id>
<volume-id>Asianux Server 4 SP6 i686</volume-id>
</iso>
<kernel>isolinux/vmlinuz</kernel>
<initrd>isolinux/initrd.img</initrd>
</media>
<resources arch="all">
<minimum>
<n-cpus>1</n-cpus>
<ram>536870912</ram>
</minimum>
<recommended>
<cpu>400000000</cpu>
<ram>1073741824</ram>
<storage>9663676416</storage>
</recommended>
</resources>
</os>
</libosinfo>
<?xml version="1.0" encoding="UTF-8"?>
<libosinfo version="0.0.1">
<os id="http://asianux.com/asianux/4.7">
<short-id>asianux4.7</short-id>
<name>Asianux Server 4 SP7</name>
<vendor>Asianux Project</vendor>
<family>linux</family>
<distro>asianux</distro>
<codename>Hiranya</codename>
<upgrades id="http://asianux.com/asianux/4.6"/>
<release-date>2017-05-26</release-date>
<media arch="x86_64">
<iso>
<system-id>LINUX</system-id>
<volume-id>Asianux Server 4 SP7 x86_64</volume-id>
</iso>
<kernel>isolinux/vmlinuz</kernel>
<initrd>isolinux/initrd.img</initrd>
</media>
<media arch="i686">
<iso>
<system-id>LINUX</system-id>
<volume-id>Asianux Server 4 SP7 i686</volume-id>
</iso>
<kernel>isolinux/vmlinuz</kernel>
<initrd>isolinux/initrd.img</initrd>
</media>
<resources arch="all">
<minimum>
<n-cpus>1</n-cpus>
<ram>536870912</ram>
</minimum>
<recommended>
<cpu>400000000</cpu>
<ram>1073741824</ram>
<storage>9663676416</storage>
</recommended>
</resources>
</os>
</libosinfo>
<?xml version="1.0" encoding="UTF-8"?>
<libosinfo version="0.0.1">
<os id="http://asianux.com/asianux/7.0">
<short-id>asianux7.0</short-id>
<name>Asianux Server 7</name>
<version>7.0</version>
<vendor>Asianux Project</vendor>
<family>linux</family>
<distro>asianux</distro>
<codename>Lotus</codename>
<derives-from id="http://redhat.com/rhel/7.0"/>
<release-date>2015-07-16</release-date>
<media arch="x86_64">
<iso>
<system-id>LINUX</system-id>
<volume-id>Asianux Server 7.0 x86_64</volume-id>
</iso>
<kernel>isolinux/vmlinuz</kernel>
<initrd>isolinux/initrd.img</initrd>
</media>
<resources arch="all">
<minimum>
<n-cpus>1</n-cpus>
<cpu>1000000000</cpu>
<ram>1073741824</ram>
<storage>10737418240</storage>
</minimum>
<recommended>
<cpu>1000000000</cpu>
<ram>1073741824</ram>
<storage>10737418240</storage>
</recommended>
</resources>
</os>
</libosinfo>
<?xml version="1.0" encoding="UTF-8"?>
<libosinfo version="0.0.1">
<os id="http://asianux.com/asianux/7.1">
<short-id>asianux7.1</short-id>
<name>Asianux Server 7 SP1</name>
<version>7.1</version>
<vendor>Asianux Project</vendor>
<family>linux</family>
<distro>asianux</distro>
<codename>Lotus</codename>
<upgrades id="http://asianux.com/asianux/7.0"/>
<release-date>2016-01-22</release-date>
<media arch="x86_64">
<iso>
<system-id>LINUX</system-id>
<volume-id>Asianux Server 7 SP1 x86_64</volume-id>
</iso>
<kernel>isolinux/vmlinuz</kernel>
<initrd>isolinux/initrd.img</initrd>
</media>
<resources arch="all">
<minimum>
<n-cpus>1</n-cpus>
<cpu>1000000000</cpu>
<ram>1073741824</ram>
<storage>10737418240</storage>
</minimum>
<recommended>
<cpu>1000000000</cpu>
<ram>1073741824</ram>
<storage>10737418240</storage>
</recommended>
</resources>
</os>
</libosinfo>
<?xml version="1.0" encoding="UTF-8"?>
<libosinfo version="0.0.1">
<os id="http://asianux.com/asianux/7.2">
<short-id>asianux7.2</short-id>
<name>Asianux Server 7 SP2</name>
<version>7.2</version>
<vendor>Asianux Project</vendor>
<family>linux</family>
<distro>asianux</distro>
<codename>Lotus</codename>
<upgrades id="http://asianux.com/asianux/7.1"/>
<release-date>2017-10-24</release-date>
<media arch="x86_64">
<iso>
<system-id></system-id>
<volume-id>Asianux Server 7 SP2 x86_64</volume-id>
</iso>
<kernel>isolinux/vmlinuz</kernel>
<initrd>isolinux/initrd.img</initrd>
</media>
<resources arch="all">
<minimum>
<n-cpus>1</n-cpus>
<cpu>1000000000</cpu>
<ram>1073741824</ram>
<storage>10737418240</storage>
</minimum>
<recommended>
<cpu>1000000000</cpu>
<ram>1073741824</ram>
<storage>10737418240</storage>
</recommended>
</resources>
</os>
</libosinfo>