>I've applied [1] which seems pretty good, but unfortunately, it seems like qemu doesn't like working with ppc64le binaries and fails with an invalid exception [2]
>
> This might be worth a bug, Mikhail?
Hmm, maybe. Did you run diskimage-builder inside a ppc64 VM? Because I believe chroot environment does not allow you to easily build an image for a different arch without some extra tinkering. I was not able to do a cross-platform build of ppc from x86 chroot environment. So using the target arch VM is what I was doing.
>I've applied [1] which seems pretty good, but unfortunately, it seems like qemu doesn't like working with ppc64le binaries and fails with an invalid exception [2]
>
> This might be worth a bug, Mikhail?
Hmm, maybe. Did you run diskimage-builder inside a ppc64 VM? Because I believe chroot environment does not allow you to easily build an image for a different arch without some extra tinkering. I was not able to do a cross-platform build of ppc from x86 chroot environment. So using the target arch VM is what I was doing.
Also it appears that current diskimage-builder test suite does not cover the partition code. In it's absense I have created https:/ /review. openstack. org/#q, I2b62d6f9888237 488f5bcc9cdf2aa 86dc40eba95, n,z on top of proposed fix. ppc64 test currently fails with
exception [Unknown flag [prep] in partitioning for [boot]]