[elbe-devel] [PATCH 1/1] set autoresize flag if volume size is "remain"
Manuel Traut
manut at linutronix.de
Mon Dec 15 19:31:37 CET 2014
Hi John,
On 17:49 Mon 15 Dec , John Ogness wrote:
> 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
thx, for the patch!
I applied to the devel/elbe-1.0 branch
https://github.com/Linutronix/elbe/commit/c84a1d2025a5644c1d5bd823fc3e98fb7a4d03fb
Manuel
More information about the elbe-devel
mailing list