libvirt: Check for qemu.conf before modifying
PATCH 1/1 libvirt: Check for qemu.conf before modifying
Signed-off-by Jeremy Puhlman <[email protected]>
--- recipes-extended/libvirt/libvirt_4.3.0.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
recipes-extended/libvirt/libvirt_4.3.0.bb +4 -2
@@ -266,8 +266,10 @@ do_install_append() { fi # disable seccomp_sandbox - sed -i '/^#seccomp_sandbox = 1/aseccomp_sandbox = 0' \ - ${D}${sysconfdir}/libvirt/qemu.conf + if [ -e ${D}${sysconfdir}/libvirt/qemu.conf ] ; then + sed -i '/^#seccomp_sandbox = 1/aseccomp_sandbox = 0' \ + ${D}${sysconfdir}/libvirt/qemu.conf + fi # Add hook support for libvirt mkdir -p ${D}/etc/libvirt/hooks
Signature · 1 line
2.11.1
merged
Bruce
Quoted 32 lines · Jeremy Puhlman
Signed-off-by Jeremy Puhlman <[email protected]>--- recipes-extended/libvirt/libvirt_4.3.0.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)recipes-extended/libvirt/libvirt_4.3.0.bb +4
-3@@ -266,8 +266,10 @@ do_install_append() { fi # disable seccomp_sandbox - sed -i '/^#seccomp_sandbox = 1/aseccomp_sandbox = 0' \ - ${D}${sysconfdir}/libvirt/qemu.conf + if [ -e ${D}${sysconfdir}/libvirt/qemu.conf ] ; then + sed -i '/^#seccomp_sandbox = 1/aseccomp_sandbox = 0' \ + ${D}${sysconfdir}/libvirt/qemu.conf + fi # Add hook support for libvirt mkdir -p ${D}/etc/libvirt/hooks --2.11.1
--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"