- bsc#1177763 - Cannot install an existing virtual machine two
error messages with Virtual Machine Manager virtman-append-usr-sbin-to-search-path.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=517
This commit is contained in:
parent
c13155abd0
commit
8d9c2a3197
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 23 13:25:38 MDT 2020 - carnold@suse.com
|
||||
|
||||
- bsc#1177763 - Cannot install an existing virtual machine two
|
||||
error messages with Virtual Machine Manager
|
||||
virtman-append-usr-sbin-to-search-path.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 30 17:07:44 MDT 2020 - carnold@suse.com
|
||||
|
||||
|
@ -62,6 +62,7 @@ Patch156: virtman-dont-specify-gtksource-version.patch
|
||||
Patch157: virtman-fix-restore-vm-menu-selection.patch
|
||||
Patch158: virtman-disallow-adding-floppy-disk.patch
|
||||
Patch159: virtman-register-delete-event-for-details-dialog.patch
|
||||
Patch160: virtman-append-usr-sbin-to-search-path.patch
|
||||
Patch170: virtinst-xen-drive-type.patch
|
||||
Patch171: virtinst-xenbus-disk-index-fix.patch
|
||||
Patch172: virtinst-refresh_before_fetch_pool.patch
|
||||
@ -184,6 +185,7 @@ machine).
|
||||
%patch157 -p1
|
||||
%patch158 -p1
|
||||
%patch159 -p1
|
||||
%patch160 -p1
|
||||
%patch170 -p1
|
||||
%patch171 -p1
|
||||
%patch172 -p1
|
||||
|
19
virtman-append-usr-sbin-to-search-path.patch
Normal file
19
virtman-append-usr-sbin-to-search-path.patch
Normal file
@ -0,0 +1,19 @@
|
||||
References: bsc#1177763
|
||||
When virt-manager is launched by a user (non-root) for the first
|
||||
time and no connection was previously defined, the user path
|
||||
typically does not have /usr/sbin and will therefore fail to find
|
||||
the installed libvirtd.
|
||||
|
||||
|
||||
--- virt-manager-3.1.0/virtManager/lib/connectauth.py.orig 2020-10-23 13:18:59.894366558 -0600
|
||||
+++ virt-manager-3.1.0/virtManager/lib/connectauth.py 2020-10-23 13:20:03.050368102 -0600
|
||||
@@ -204,7 +204,8 @@ def connect_error(conn, errmsg, tb, warn
|
||||
##################################
|
||||
|
||||
def setup_first_uri(config, tryuri):
|
||||
- libvirtd_installed = bool(shutil.which("libvirtd"))
|
||||
+ # Add /usr/sbin to the path in case non-root user launches virt-manager
|
||||
+ libvirtd_installed = bool(shutil.which("libvirtd", path=os.environ['PATH'] + os.pathsep + "/usr/sbin"))
|
||||
if config.CLITestOptions.fake_no_libvirtd:
|
||||
libvirtd_installed = False
|
||||
|
Loading…
Reference in New Issue
Block a user