Re: [PATCH libosinfo 6/7] Add data files for Fedora & Windows unattended installs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 1, 2012 at 1:31 PM, Daniel P. Berrange <berrange@xxxxxxxxxx> wrote:
> On Wed, Feb 29, 2012 at 04:57:50PM +0200, Zeeshan Ali (Khattak) wrote:
>> On Tue, Feb 28, 2012 at 5:26 PM, Daniel P. Berrange <berrange@xxxxxxxxxx> wrote:
>>
>> > +        <xsl:template match="/install-script-config">
>> > +# Install script for <xsl:value-of select="os/short-id"/> profile <xsl:value-of select="script/profile"/>
>> > +install
>> > +text
>> > +keyboard <xsl:value-of select="config/l10n-keyboard"/>
>> > +lang <xsl:value-of select="config/l10n-language"/>
>> > +<xsl:if test="os/version &lt; 7">
>> > +langsupport --default <xsl:value-of select="config/l10n-language"/> <xsl:value-of select="config/l10n-language"/>
>> > +mouse generic3ps/2 --device psaux
>> > +</xsl:if>
>> > +skipx
>> > +network --device eth0 --bootproto dhcp
>> > +rootpw <xsl:value-of select="config/admin-password"/>
>> > +firewall --disabled
>> > +authconfig --enableshadow --enablemd5
>> > +<xsl:if test="os/version &gt; 1">
>> > +selinux --enforcing
>> > +</xsl:if>
>> > +timezone --utc <xsl:value-of select="config/l10n-timezone"/>
>> > +bootloader --location=mbr
>> > +zerombr <xsl:if test="os/version &lt; 14">yes</xsl:if>
>> > +
>> > +clearpart --all --drives=<xsl:call-template name="disk"/>
>> > +
>> > +<xsl:if test="os/version &gt; 15">
>> > +part biosboot --fstype=biosboot --size=1
>> > +</xsl:if>
>> > +part /boot --fstype <xsl:call-template name="bootfs"/> --size=200 --ondisk=<xsl:call-template name="disk"/>
>> > +part pv.2 --size=1 --grow --ondisk=<xsl:call-template name="disk"/>
>> > +volgroup VolGroup00 --pesize=32768 pv.2
>> > +logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=768 --grow --maxsize=1536
>> > +logvol / --fstype <xsl:call-template name="rootfs"/> --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
>> > +reboot
>> > +
>> > +%packages
>> > +@base
>> > +@core
>> > +<xsl:if test="os/version &gt; 6">
>> > +@hardware-support
>> > +</xsl:if>
>> > +
>> > +%end
>> > +       </xsl:template>
>>
>> With all the escaping involved, I wonder if if would be better in the
>> long run to have the templates in a separate file that we point to
>> from this XML?
>
> What escaping are you refering to ?  There is only the '&gt;' bit in
> the XSL conditional tests, which you'd need regardless of what file
> the template is in.

Ah ok. Never really managed to completely grap XML tech. :)

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux