mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user