[elbe-devel] [PATCH 2/3] schema: dbsfed: Add node definition for losetup/shell

Olivier Dion dion at linutronix.de
Mon Jun 22 19:14:47 CEST 2020


Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 schema/dbsfed.xsd | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/schema/dbsfed.xsd b/schema/dbsfed.xsd
index c7bae9be..7e345232 100644
--- a/schema/dbsfed.xsd
+++ b/schema/dbsfed.xsd
@@ -2059,6 +2059,15 @@
           </documentation>
         </annotation>
       </element>
+      <element name="sh" type="rfs:partition-shell" minOccurs="0" maxOccurs="1">
+        <annotation>
+          <documentation>
+	    Execute a shell script with a partition mounted.  Before
+	    the script is runned, the environment variable ELBE_MNT is
+	    set to the absolute filepath to the mount point.
+          </documentation>
+        </annotation>
+      </element>
     </choice>
   </group>
 
@@ -2077,6 +2086,20 @@
     </simpleContent>
   </complexType>
 
+    <complexType name="partition-shell">
+    <annotation>
+      <documentation>
+	The node' text should be a valid shell script, starting with a
+	shebang.
+      </documentation>
+    </annotation>
+    <simpleContent>
+      <extension base="rfs:string">
+        <attribute name="part" type="integer" use="required" />
+      </extension>
+    </simpleContent>
+  </complexType>
+
   <complexType name="copy_from_partition">
     <annotation>
       <documentation>
-- 
2.27.0




More information about the elbe-devel mailing list