On the toplevel of an image description you can now
specify include directive(s) like in the following
example
<image ...>
...
<include from="filename_a.xml"/>
...
<include from="filename_b.xml"/>
</image>
At the place of their occurrence the include statement
will be replaced with the contents of the given filename.
The implementation is based on a XSLT stylesheet and
applies very early in the process. The stylesheet reads
the contents of the given file as XML document().
Thus only valid XML documents gets accepted by this
include concept. This Fixes #1929 and is related to
Issue #1918
30 lines
956 B
XML
30 lines
956 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<image schemaversion="7.4" name="LimeJeOS">
|
|
<description type="system">
|
|
<author>Marcus</author>
|
|
<contact>ms@suse.com</contact>
|
|
<specification>
|
|
Testing include raise condition
|
|
</specification>
|
|
</description>
|
|
<preferences>
|
|
<version>1.13.2</version>
|
|
<packagemanager>zypper</packagemanager>
|
|
<locale>en_US</locale>
|
|
<keytable>us.map.gz</keytable>
|
|
<timezone>Europe/Berlin</timezone>
|
|
<type image="tbz"/>
|
|
</preferences>
|
|
<users>
|
|
<user pwdformat="plain" password="mypwd" shell="/bin/bash" id="815" realname="Bob" home="/root" name="root"/>
|
|
</users>
|
|
<include from="../data/include_repo.xml"/>
|
|
<packages type="image" patternType="plusRecommended">
|
|
<namedCollection name="base"/>
|
|
</packages>
|
|
<packages type="bootstrap">
|
|
<package name="filesystem"/>
|
|
</packages>
|
|
</image>
|