summaryrefslogtreecommitdiffstats
path: root/yaboot.xsl
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2009-02-02 18:36:40 -0500
committerNathan Straz <nstraz@redhat.com>2009-02-02 18:36:40 -0500
commit7e1247b426ae86d7c660a9ca87f76d43773670f6 (patch)
treeb91f593102a185a998bec50255e52ef0022de948 /yaboot.xsl
downloadsteeltoe-7e1247b426ae86d7c660a9ca87f76d43773670f6.tar.gz
steeltoe-7e1247b426ae86d7c660a9ca87f76d43773670f6.tar.xz
steeltoe-7e1247b426ae86d7c660a9ca87f76d43773670f6.zip
Import a sanitized version of Steel Toe, the provisioning system.
Diffstat (limited to 'yaboot.xsl')
-rw-r--r--yaboot.xsl18
1 files changed, 18 insertions, 0 deletions
diff --git a/yaboot.xsl b/yaboot.xsl
new file mode 100644
index 0000000..92e75bc
--- /dev/null
+++ b/yaboot.xsl
@@ -0,0 +1,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>