diff options
author | Jeremy Puhlman <jpuhlman@mvista.com> | 2018-06-13 16:32:53 -0700 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-06-14 04:32:53 -0400 |
commit | 8af86bc72dc7313d8a81e0e8897efbd044575b15 (patch) | |
tree | ed0b8bf82777aa8d8b02376b5fd5be4e6b0d8a61 /recipes-extended/libvirt | |
parent | b0acd19777112dd3d6afeee8a22a157407ba1647 (diff) | |
download | meta-virtualization-8af86bc72dc7313d8a81e0e8897efbd044575b15.tar.gz |
libvirt: Check for qemu.conf before modifying
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended/libvirt')
-rw-r--r-- | recipes-extended/libvirt/libvirt_4.3.0.bb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/recipes-extended/libvirt/libvirt_4.3.0.bb b/recipes-extended/libvirt/libvirt_4.3.0.bb index ef51b9e5..edd52616 100644 --- a/recipes-extended/libvirt/libvirt_4.3.0.bb +++ b/recipes-extended/libvirt/libvirt_4.3.0.bb | |||
@@ -266,8 +266,10 @@ do_install_append() { | |||
266 | fi | 266 | fi |
267 | 267 | ||
268 | # disable seccomp_sandbox | 268 | # disable seccomp_sandbox |
269 | sed -i '/^#seccomp_sandbox = 1/aseccomp_sandbox = 0' \ | 269 | if [ -e ${D}${sysconfdir}/libvirt/qemu.conf ] ; then |
270 | ${D}${sysconfdir}/libvirt/qemu.conf | 270 | sed -i '/^#seccomp_sandbox = 1/aseccomp_sandbox = 0' \ |
271 | ${D}${sysconfdir}/libvirt/qemu.conf | ||
272 | fi | ||
271 | 273 | ||
272 | # Add hook support for libvirt | 274 | # Add hook support for libvirt |
273 | mkdir -p ${D}/etc/libvirt/hooks | 275 | mkdir -p ${D}/etc/libvirt/hooks |