forked from pool/libvirt
906f09abf9
- sysconfig files have not been distributed for many months. Add upstream patches that improve documentation and moves service default settings to the associated systemd service file. - Update to libvirt 8.0.0 - CVE-2021-4147 - bsc#1191511 - jsc#SLE-11435, jsc#SLE-18354 - Many incremental improvements and bug fixes, see https://libvirt.org/news.html#v8-0-0-2022-01-14 OBS-URL: https://build.opensuse.org/request/show/947275 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=918
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
Adjust libvirt-guests service to conform to SUSE standards
|
|
|
|
Index: libvirt-8.0.0/tools/libvirt-guests.sh.in
|
|
===================================================================
|
|
--- libvirt-8.0.0.orig/tools/libvirt-guests.sh.in
|
|
+++ libvirt-8.0.0/tools/libvirt-guests.sh.in
|
|
@@ -20,10 +20,6 @@ sysconfdir="@sysconfdir@"
|
|
localstatedir="@localstatedir@"
|
|
libvirtd="@sbindir@"/libvirtd
|
|
|
|
-# Source function library.
|
|
-test ! -r "$sysconfdir"/rc.d/init.d/functions ||
|
|
- . "$sysconfdir"/rc.d/init.d/functions
|
|
-
|
|
# Source gettext library.
|
|
# Make sure this file is recognized as having translations: _("dummy")
|
|
. "@bindir@"/gettext.sh
|
|
@@ -43,7 +39,11 @@ test -f "$sysconfdir"/sysconfig/libvirt-
|
|
. "$sysconfdir"/sysconfig/libvirt-guests
|
|
|
|
LISTFILE="$localstatedir"/lib/libvirt/libvirt-guests
|
|
-VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests
|
|
+if [ -d "$localstatedir"/lock/subsys ]; then
|
|
+ VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/subsys/libvirt-guests
|
|
+else
|
|
+ VAR_SUBSYS_LIBVIRT_GUESTS="$localstatedir"/lock/libvirt-guests
|
|
+fi
|
|
|
|
RETVAL=0
|
|
|