mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
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>
This commit is contained in:
parent
0db3901a48
commit
ba6143a680
|
@ -340,10 +340,12 @@ do_install_append() {
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
if ${@bb.utils.contains('PACKAGECONFIG', 'qemu', 'true', 'false', d)}; then
|
||||||
chown -R qemu:qemu ${D}/${localstatedir}/lib/libvirt/qemu
|
chown -R qemu:qemu ${D}/${localstatedir}/lib/libvirt/qemu
|
||||||
echo "d qemu qemu 0755 ${localstatedir}/cache/libvirt/qemu none" \
|
echo "d qemu qemu 0755 ${localstatedir}/cache/libvirt/qemu none" \
|
||||||
>> ${D}${sysconfdir}/default/volatiles/99_libvirt
|
>> ${D}${sysconfdir}/default/volatiles/99_libvirt
|
||||||
break
|
break
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user