]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
openvz: stop hardcoding vzlist/vzctl/vzmigrate paths
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 29 Apr 2025 10:59:41 +0000 (11:59 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 2 May 2025 08:31:28 +0000 (09:31 +0100)
Allow virCommand to find them in $PATH, which will always include 'sbin'
since the openvz driver only operates in system mode.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/openvz/openvz_conf.h

index 9c3eff9aafabd710d0eead91a82c5f3efad99c22..83244ba60e5b003963ac93e18ce6e4f6f6394478 100644 (file)
@@ -29,9 +29,9 @@
 
 
 /* OpenVZ commands - Replace with wrapper scripts later? */
-#define VZLIST         "/usr/sbin/vzlist"
-#define VZCTL          "/usr/sbin/vzctl"
-#define VZMIGRATE      "/usr/sbin/vzmigrate"
+#define VZLIST         "vzlist"
+#define VZCTL          "vzctl"
+#define VZMIGRATE      "vzmigrate"
 #define VZ_CONF_FILE   "/etc/vz/vz.conf"
 
 #define VZCTL_BRIDGE_MIN_VERSION ((3 * 1000 * 1000) + (0 * 1000) + 22 + 1)