This makes the condition that chooses which daemon name libvirt to call
the same as for choosing the livirt package names.
Without this fix the condition checking for a directory is incorrect
when livirt is not yet installed, but is used before installing the
packages.
Change-Id: Ib5eb12769128527a6f4b3b5f7674bd2dad0ed160
| ... | ... |
@@ -25,7 +25,7 @@ DEBUG_LIBVIRT=$(trueorfalse True DEBUG_LIBVIRT) |
| 25 | 25 |
DEBUG_LIBVIRT_COREDUMPS=$(trueorfalse False DEBUG_LIBVIRT_COREDUMPS) |
| 26 | 26 |
|
| 27 | 27 |
# Only Xenial is left with libvirt-bin. Everywhere else is libvirtd |
| 28 |
-if is_ubuntu && [ ! -f /etc/init.d/libvirtd ]; then |
|
| 28 |
+if is_ubuntu && [ ${DISTRO} == "xenial" ]; then
|
|
| 29 | 29 |
LIBVIRT_DAEMON=libvirt-bin |
| 30 | 30 |
else |
| 31 | 31 |
LIBVIRT_DAEMON=libvirtd |