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
31 lines
984 B
XML
31 lines
984 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<image schemaversion="7.4" name="JeOS">
|
|
<description type="system">
|
|
<author>Marcus Schäfer</author>
|
|
<contact>ms@suse.com</contact>
|
|
<specification>Test for missing include reference</specification>
|
|
</description>
|
|
<include from="/this/include/does/not/exist.xml"/>
|
|
<preferences>
|
|
<version>1.1.0</version>
|
|
<packagemanager>zypper</packagemanager>
|
|
<locale>en_US</locale>
|
|
<keytable>us.map.gz</keytable>
|
|
<timezone>Europe/Berlin</timezone>
|
|
<rpm-excludedocs>true</rpm-excludedocs>
|
|
<type image="tbz"/>
|
|
</preferences>
|
|
<repository>
|
|
<source path="obs://13.2/repo/oss"/>
|
|
</repository>
|
|
<packages type="image">
|
|
<package name="patterns-openSUSE-base"/>
|
|
</packages>
|
|
<packages type="bootstrap">
|
|
<package name="udev"/>
|
|
<package name="filesystem"/>
|
|
<package name="glibc-locale"/>
|
|
</packages>
|
|
</image>
|