Subject: [bug#28718] [PATCH] gnu: qemu: Add sysconfdir to configure-flags.

From: Leo Famulari <[email-masked]>
Date: Sat, 7 Oct 2017 13:58:38 -0400

On Fri, Oct 06, 2017 at 06:30:34AM +0300, Oleg Pykhalov wrote:
> From 371ba5aee9ef1412753fdb43230f107087f9651b Mon Sep 17 00:00:00 2001
> From: Oleg Pykhalov <[email-masked]>
> Date: Fri, 6 Oct 2017 06:24:58 +0300
> Subject: [PATCH] gnu: qemu: Add sysconfdir to configure-flags.
> 
> * gnu/packages/virtualization.scm (qemu): Add sysconfdir to configure-flags.

Hi Oleg, thanks for the patch.

> ---
>  gnu/packages/virtualization.scm | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
> index a8e54d684..21fc7b784 100644
> --- a/gnu/packages/virtualization.scm
> +++ b/gnu/packages/virtualization.scm
> @@ -111,6 +111,7 @@
>                           "--disable-debug-info" ; save build space
>                           "--enable-virtfs"      ; just to be sure
>                           ,(string-append "--prefix=" out)
> +                         ,(string-append "--sysconfdir=/tmp/etc")
>                           ,@configure-flags))))))
>           (add-after 'install 'install-info
>             (lambda* (#:key inputs outputs #:allow-other-keys)

Can you describe the problem this patch aims to address? And, where does
QEMU look for its configuration when this flag is not set?