openpower-software-manager: Adjust the size of the ubi volume

The ubi volume size is the allocated size when they're created
so need to set the max size needed at creation time. The size
will be passed in with an argument (via openbmc/openbmc#1979)
so for now approximate the sizes based on current file sizes.

Decrease the size of the read-only partition to save some space,
since even though the volume size adjusts to the size of the image,
ubi will still reserve that space for the volume.

Increase the size of the read-write volume to be able to fit
the read-write partitions.
Slightly increase the size of the prsv volume, there are only
3 pnor prsv partitions of a few KB each.

Change-Id: I3175c731fa19127b6b16db5fe7af0cebc66e7ead
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
1 file changed