[Libguestfs] Handling different architectures in virt-builder

Richard W.M. Jones rjones at redhat.com
Fri Feb 14 16:19:39 UTC 2014


On Fri, Feb 14, 2014 at 03:48:34PM +0100, Pino Toscano wrote:
> a) adding arch=.. keys in entries
> b) rename (or just copy, to avoid breaking older virt-builders) keys to
>    $distro-$version-$arch
> c) to not break compatibility with user input virt-builder joins
>    $user_selection + $arch = $user_selection-$arch, and looks in the
>    index
> d) default $arch to `uname -m/p`, if --arch is not specified

os-version is a unique key in the index today, but does it need to be?
You could have multiple os-version entries differing only by at least
the following fields:

. revision
. arch
. format

So your unique key internally in virt-builder would be (os-version,
revision, arch, format) ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list