]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vmspawn: also search for qemu binary at /usr/lib/qemu-kvm
authorDaan De Meyer <daan@amutable.com>
Sat, 4 Apr 2026 22:02:46 +0000 (22:02 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 5 Apr 2026 07:55:09 +0000 (09:55 +0200)
This is the qemu binary path on CentOS Stream.

src/vmspawn/vmspawn-util.c

index 7e085d7faf0fc10939e501935b44dc63ef17ad92..ca4ddc70c7f2e988361f22eb64fe2c16eb9819de 100644 (file)
@@ -523,7 +523,7 @@ int find_qemu_binary(char **ret_qemu_binary) {
          * If the native architecture is not supported by qemu -EOPNOTSUPP will be returned;
          */
 
-        FOREACH_STRING(s, "qemu", "qemu-kvm") {
+        FOREACH_STRING(s, "qemu", "qemu-kvm", "/usr/lib/qemu-kvm") {
                 r = find_executable(s, ret_qemu_binary);
                 if (r == 0)
                         return 0;