add hack to force virtio_blk instead of virtio_scsi

because 12.1 and older kernels do not have virtio_scsi yet

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=53
This commit is contained in:
Olaf Hering 2012-09-02 12:25:54 +00:00 committed by Git OBS Bridge
parent 1e74dfd9e3
commit c2a0a43dd0
2 changed files with 18 additions and 0 deletions

16
libguestfs-1.19.37.patch Normal file
View File

@ -0,0 +1,16 @@
---
src/launch-appliance.c | 1 +
1 file changed, 1 insertion(+)
Index: libguestfs-1.19.37/src/launch-appliance.c
===================================================================
--- libguestfs-1.19.37.orig/src/launch-appliance.c
+++ libguestfs-1.19.37/src/launch-appliance.c
@@ -885,6 +885,7 @@ is_openable (guestfs_h *g, const char *p
static int
qemu_supports_virtio_scsi (guestfs_h *g)
{
+ return 0;
int r;
/* g->app.virtio_scsi has these values:

View File

@ -138,6 +138,7 @@ License: LGPL-2.1
Group: System/Filesystems
Version: 1.19.37
Release: 0
Patch0: libguestfs-1.19.37.patch
Patch5: libguestfs-1.13.14-ruby.patch
Patch101: libguestfs.perl.no-rpath.patch
Source0: %{name}-%{version}.tar.gz
@ -313,6 +314,7 @@ virtual machines.
%prep
%setup -q
%patch0 -p1
%patch5 -p1
%patch101 -p1