- bsc#1167569 - SLES 15 SP2 RC1 - virt-install: cache=none is

ignored (kvm)
  virtinst-set-cache-mode-unsafe-for-install.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=501
This commit is contained in:
Charles Arnold 2020-03-24 20:03:25 +00:00 committed by Git OBS Bridge
parent 6d564cadcc
commit c687b1fb64
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Mar 24 14:00:39 MDT 2020 - carnold@suse.com
- bsc#1167569 - SLES 15 SP2 RC1 - virt-install: cache=none is
ignored (kvm)
virtinst-set-cache-mode-unsafe-for-install.patch
-------------------------------------------------------------------
Fri Mar 20 15:03:40 MDT 2020 - carnold@suse.com

View File

@ -14,7 +14,7 @@ Index: virt-manager-2.2.1/virtinst/install/installer.py
+ if guest.devices.disk:
+ target_disk = guest.devices.disk[0]
+ saved_cache = target_disk.driver_cache
+ if target_disk.type != DeviceDisk.TYPE_BLOCK:
+ if target_disk.type != DeviceDisk.TYPE_BLOCK and target_disk.driver_io != "native":
+ target_disk.driver_cache = DeviceDisk.CACHE_MODE_UNSAFE
+
data = self._prepare_get_install_xml(guest)