ppc: Disallow ide interface.

qemu-system-ppc64 lets you add the IDE interface to the appliance, but
the appliance kernel ignores it (and consequently can't find the
appliance disk so it all goes wrong).  Best to just disallow this.

Also skip tests that try using iface = 'ide'.
This commit is contained in:
Richard W.M. Jones
2013-09-10 10:41:37 +01:00
parent aee17de30a
commit 74938b895c
3 changed files with 10 additions and 2 deletions

View File

@@ -409,9 +409,9 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
*/
if (drv->iface && STREQ (drv->iface, "virtio")) /* virtio-blk */
goto virtio_blk;
#ifdef __arm__
#if defined(__arm__) || defined(__powerpc__)
else if (drv->iface && STREQ (drv->iface, "ide")) {
error (g, "'ide' interface does not work on ARM");
error (g, "'ide' interface does not work on ARM or PowerPC");
goto cleanup0;
}
#endif

View File

@@ -33,6 +33,10 @@ if [[ "$arch" =~ ^arm ]]; then
echo "$0: test skipped because ARM does not support 'ide' interface."
exit 77
fi
if [[ "$arch" =~ ^ppc ]]; then
echo "$0: test skipped because PowerPC does not support 'ide' interface."
exit 77
fi
backend="$(../../fish/guestfish get-backend)"
if [[ "$backend" =~ ^libvirt ]]; then

View File

@@ -33,6 +33,10 @@ if [[ "$arch" =~ ^arm ]]; then
echo "$0: test skipped because ARM does not support 'ide' interface."
exit 77
fi
if [[ "$arch" =~ ^ppc ]]; then
echo "$0: test skipped because PowerPC does not support 'ide' interface."
exit 77
fi
backend="$(../../fish/guestfish get-backend)"
if [[ "$backend" =~ ^libvirt ]]; then