[et-mgmt-tools] [PATCH 1 of 4] Allow relative paths, not just file names where files are referenced
David Lutterkort
dlutter at redhat.com
Wed Dec 5 00:44:56 UTC 2007
diff -r 6fb5cb8419d3 -r 4227c03796d6 doc/image.rng
--- a/doc/image.rng Sat Dec 01 12:12:41 2007 -0500
+++ b/doc/image.rng Tue Dec 04 15:17:10 2007 -0800
@@ -116,9 +116,9 @@
Boot a kernel/initrd contained in the image
-->
<group>
- <element name="kernel"><ref name="fileName"/></element>
- <optional>
- <element name="initrd"><ref name="fileName"/></element>
+ <element name="kernel"><ref name="relFilePath"/></element>
+ <optional>
+ <element name="initrd"><ref name="relFilePath"/></element>
</optional>
<optional>
<element name="cmdline"><text/></element>
@@ -135,7 +135,7 @@
-->
<oneOrMore>
<element name="drive">
- <attribute name="disk"><ref name="fileName"/></attribute>
+ <attribute name="disk"><ref name="relFilePath"/></attribute>
<optional>
<attribute name="target"><ref name="deviceName"/></attribute>
</optional>
@@ -161,7 +161,7 @@
iso for an ISO
-->
<element name="disk">
- <attribute name="file"><ref name="fileName"/></attribute>
+ <attribute name="file"><ref name="relFilePath"/></attribute>
<attribute name="use">
<choice>
<value>system</value>
@@ -229,6 +229,11 @@
<param name="pattern">[^/]+</param>
</data>
</define>
+ <define name='relFilePath'>
+ <data type='string'>
+ <param name="pattern">[a-zA-Z0-9_\+\-%.][a-zA-Z0-9_\+\-%./]*</param>
+ </data>
+ </define>
<define name='deviceName'>
<data type='string'>
<param name="pattern">[a-zA-Z0-9_\-:./]+</param>
More information about the et-mgmt-tools
mailing list