[elbe-devel] [PATCH 1/1] set autoresize flag if volume size is "remain"
John Ogness
john.ogness at linutronix.de
Mon Dec 15 17:49:27 CET 2014
If no size for the UBI volume is specified, ubinize will set the size
to the current image size. By "remain" the user is expecting the size
to fill the remaining partition space. This only happens when the
autoresize flag is set.
Signed-off-by: John Ogness <john.ogness at linutronix.de>
---
Patch against devel/elbe-1.0
elbepack/hdimg.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/elbepack/hdimg.py b/elbepack/hdimg.py
index b88371c..41241e9 100644
--- a/elbepack/hdimg.py
+++ b/elbepack/hdimg.py
@@ -113,6 +113,8 @@ def build_image_mtd( outf, mtd, target ):
if vol.text("size") != "remain":
fp.write( "vol_size=%d\n" % size_to_int( vol.text("size") ) )
+ else
+ fp.write( "vol_flags=autoresize\n" )
fp.close()
--
1.7.10.4
More information about the elbe-devel
mailing list