[elbe-devel] [PATCH v2 2/8] dbsfed.xsd: change memory_restriction to unit prefixes
Torben Hohn
torben.hohn at linutronix.de
Tue May 8 17:10:40 CEST 2018
After moving the mem field from buildimage to initvm,
we are basically making a fresh start.
Drop the 128MB limit, and allow unit prefixes.
initvm/mem is only for experts. And it only
makes sense to specify it, when the default 1GiB is not enough.
So its unlikely that anybody will specify less than 128MB.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
schema/dbsfed.xsd | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/schema/dbsfed.xsd b/schema/dbsfed.xsd
index 908f786f..4572337d 100644
--- a/schema/dbsfed.xsd
+++ b/schema/dbsfed.xsd
@@ -601,11 +601,12 @@
<simpleType name="memory_restriction">
<annotation>
<documentation>
- at least 128 MB of memory are needed to run the debian-installer
+ Memory can be specified using binary unit prefixes like MiB and GiB,
+ or SI prefixes like GB,MB or simply G or M.
</documentation>
</annotation>
- <restriction base="integer">
- <minInclusive value="128" />
+ <restriction base="string">
+ <pattern value="(\d+(k|M|G|kB|MB|GB|kiB|MiB|GiB)?)" />
</restriction>
</simpleType>
--
2.11.0
More information about the elbe-devel
mailing list