diff options
| author | Lavocat, Nicolas <Nicolas.Lavocat@harman.com> | 2020-08-06 10:38:59 +0200 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-08-07 22:19:43 -0400 |
| commit | ba6143a680d0040138e62a46ce9c79b3457e9cbd (patch) | |
| tree | add28911dd270e563a070ff32df2b8efde2a4297 | |
| parent | 0db3901a48426ee403a045e0b626416c5fa93c6f (diff) | |
| download | meta-virtualization-ba6143a680d0040138e62a46ce9c79b3457e9cbd.tar.gz | |
libvirt: fix install error without qemu
An error occurs during the install step of libvirt when the variable
PACKAGECONFIG does not contain qemu.
Indeed, in this case, the operation "chown -R qemu:qemu
${D}/${localstatedir}/lib/libvirt/qemu" fails, since the folder
${D}/${localstatedir}/lib/libvirt/qemu has not been created.
The fix consist in doing this operation only if
the variable “PACKAGECONFIG” contains “qemu”.
remark: issue present since the Warrior release of yocto.
Upstream-Status: Pending
Signed-off-by: Nicolas Lavocat <nicolas.lavocat@harman.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | recipes-extended/libvirt/libvirt_6.3.0.bb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/recipes-extended/libvirt/libvirt_6.3.0.bb b/recipes-extended/libvirt/libvirt_6.3.0.bb index 229c56eb..dcaa48b5 100644 --- a/recipes-extended/libvirt/libvirt_6.3.0.bb +++ b/recipes-extended/libvirt/libvirt_6.3.0.bb | |||
| @@ -340,10 +340,12 @@ do_install_append() { | |||
| 340 | break | 340 | break |
| 341 | ;; | 341 | ;; |
| 342 | *) | 342 | *) |
| 343 | chown -R qemu:qemu ${D}/${localstatedir}/lib/libvirt/qemu | 343 | if ${@bb.utils.contains('PACKAGECONFIG', 'qemu', 'true', 'false', d)}; then |
| 344 | echo "d qemu qemu 0755 ${localstatedir}/cache/libvirt/qemu none" \ | 344 | chown -R qemu:qemu ${D}/${localstatedir}/lib/libvirt/qemu |
| 345 | >> ${D}${sysconfdir}/default/volatiles/99_libvirt | 345 | echo "d qemu qemu 0755 ${localstatedir}/cache/libvirt/qemu none" \ |
| 346 | break | 346 | >> ${D}${sysconfdir}/default/volatiles/99_libvirt |
| 347 | break | ||
| 348 | fi | ||
| 347 | ;; | 349 | ;; |
| 348 | esac | 350 | esac |
| 349 | 351 | ||
