summaryrefslogtreecommitdiffstats
path: root/yaboot.xsl
blob: 92e75bc4457855134a0491a68a082c29ca7e3dea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:exsl="http://exslt.org/common"
		version="1.0">
	<xsl:param name="hostname"/>
	<xsl:param name="treename"/>
	<xsl:variable name="host" select="//host[@name=$hostname]"/>
	<xsl:variable name="dist" select="//tree[@name=$treename and meta/arch=$host/arch]"/>
	<xsl:include href="select-ks.xsl"/>
	<xsl:output method="text" indent="no"/>
	<xsl:template match="/" xml:space="preserve">
timeout=50

image=<xsl:value-of select="/steeltoe/config/tftpbase"/>/<xsl:value-of select="$host/@name"/>/vmlinuz
        initrd=<xsl:value-of select="/steeltoe/config/tftpbase"/>/<xsl:value-of select="$host/@name"/>/ramdisk.image.gz
        read-only
        append="<xsl:if test="$host/console">console=<xsl:value-of select="$host/console"/> </xsl:if>ks=<xsl:value-of select="/steeltoe/config/kickstartbase"/>/<xsl:value-of select="$hostname"/>/ks.cfg ksdevice=<xsl:value-of select="$ks/ksdevice"/> <xsl:value-of select="$ks/ksparams"/>"
</xsl:template>
</xsl:stylesheet>