[elbe-devel] [PATCH 02/37] schema: drop duplicate partitition element

Benedikt Spranger b.spranger at linutronix.de
Wed Feb 7 15:28:29 CET 2024


From: Thomas Weißschuh <thomas.weissschuh at linutronix.de>

The partitions are already defined above.
It would make sense to restrict the layout to three primary partitions
when an extended partition is used. But the current schema does not
enforce this.

Fixes the following error from lxml:

```
elbe preprocess failed.
Traceback (most recent call last):
  File "/home/t-8ch/src/elbe/elbe", line 56, in <module>
    cmdmod.run_command(sys.argv[2:])
  File "/home/t-8ch/src/elbe/elbepack/commands/preprocess.py", line 46, in run_command
    xmlpreprocess(args[0], opt.output, variants, opt.proxy, opt.gzip)
  File "/home/t-8ch/src/elbe/elbepack/xmlpreprocess.py", line 316, in xmlpreprocess
    schema = etree.XMLSchema(schema_tree)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "src/lxml/xmlschema.pxi", line 89, in lxml.etree.XMLSchema.__init__
lxml.etree.XMLSchemaParseError: complex type 'msdoshd': The content model is not determinist., line 1430
```

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
---
 schema/dbsfed.xsd | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/schema/dbsfed.xsd b/schema/dbsfed.xsd
index c149dfda..eb4be47e 100644
--- a/schema/dbsfed.xsd
+++ b/schema/dbsfed.xsd
@@ -1485,13 +1485,6 @@ SPDX-FileCopyrightText: Linutronix GmbH
           </documentation>
         </annotation>
       </element>
-      <element name="partition" type="rfs:partition" minOccurs="0" maxOccurs="3">
-        <annotation>
-          <documentation>
-            Partition Entries of this harddisk (max: 3)
-          </documentation>
-        </annotation>
-      </element>
     </sequence>
     <attribute ref="xml:base"/>
   </complexType>
-- 
2.43.0



More information about the elbe-devel mailing list