On Thursday 21 April 2016 10:48:24 Richard W.M. Jones wrote:
On Thu, Apr 21, 2016 at 11:26:49AM +0200, Pino Toscano wrote:
> On Wednesday 20 April 2016 19:01:23 Richard W.M. Jones wrote:
> > Pino, do you remember what the missing data was that prevents
> > virt-builder from working properly with SimpleStreams?
> >
> > IIRC it was the target (expanded) size of the image, as it means we
> > don't know during the planning stage if we will need to resize the
> > image.
>
> Almost: if no --size is specified for virt-builder, then the template
> is used as-is; when specifying --size, there is a size check to error
> out on shrinking, and to pass the right size to virt-resize.
>
> Currently we use the "size" (which represents the size of the image)
> also as size of the image: this implies that the shrinking check won't
> actually work properly, causing a failure.
>
> We also miss the information about the partition to expand, so
> virt-resize merely adds a new empty partition at the end to fill the
> extra space.
OK so let's decide unilaterally on some fields.
I will contact Scott Moser first (the author of SimpleStreams), to know
whether these can be allowed (and possibly added in other repositories).
--
Pino Toscano