[meta-virtualization] [PATCH] libvirt: Check for qemu.conf before modifying

Bruce Ashfield bruce.ashfield at gmail.com
Thu Jun 14 01:34:06 PDT 2018


merged

Bruce

On Wed, Jun 13, 2018 at 7:32 PM, Jeremy Puhlman <jpuhlman at mvista.com> wrote:

> Signed-off-by: Jeremy Puhlman <jpuhlman at mvista.com>
> ---
>  recipes-extended/libvirt/libvirt_4.3.0.bb | 6 ++++--
>  1 file 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 ef51b9e..edd5261 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() {
>         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
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20180614/6e6faf28/attachment.html>


More information about the meta-virtualization mailing list