[OE-core] [PATCH 3/3] wic: apply --extra-space + --overhead to squashfs
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Tue Sep 12 13:23:40 UTC 2017
Ed Bartosh <ed.bartosh at linux.intel.com> writes:
> I agree. --size is less suitable for your needs than extra space and
> overhead factor. I still don't like the idea of using them to reserve
> non-formatted space.
Btw, exactly this is done for extX already.
> Any other ideas how to do it?
Perhaps, Logic can be moved into the disk_size() method:
| def disk_size(self):
| method = getattr(self, "_get_disk_size_" + prefix, None)
| if method:
| return method(self.size)
| elif self.fixed_size:
| return self.fixed_size
| else:
| return self.size
|
| def _get_disk_size_squashfs(size):
| return self.get_rootfs_size(size)
But I did not checked whether this really works.
Enrico
More information about the Openembedded-core
mailing list