unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: 28718@debbugs.gnu.org
Subject: [bug#28718] [PATCH] gnu: qemu: Add sysconfdir to configure-flags.
Date: Sat, 07 Oct 2017 22:34:11 +0200	[thread overview]
Message-ID: <877ew6k88s.fsf@gnu.org> (raw)
In-Reply-To: <87mv552bs5.fsf@gmail.com> (Oleg Pykhalov's message of "Fri, 06 Oct 2017 06:30:34 +0300")

Hi Oleg,

Oleg Pykhalov <go.wigust@gmail.com> skribis:

> From 371ba5aee9ef1412753fdb43230f107087f9651b Mon Sep 17 00:00:00 2001
> From: Oleg Pykhalov <go.wigust@gmail.com>
> 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.
> ---
>  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")

[...]

> I've used this patch to run a QEMU VM with bridge interface.
>
> $ mkdir -p /tmp/etc/qemu
> $ echo 'allow bridge0' | tee -a /tmp/etc/qemu/bridge.conf
> # ip link add bridge0 type bridge
> # ip link set dev enp6s0 master bridge0
> # ip link up bridge0
> # dhclient bridge0
> # qemu-system-x86_64 -net nic -net bridge,br=bridge0 # …

It feels wrong to me to default to /tmp/etc instead of /etc.

Setting up a bridge requires root privileges anyway, so why not stick to
/etc instead of /tmp/etc?

Thanks,
Ludo’.

  parent reply	other threads:[~2017-10-07 20:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-06  3:30 [bug#28718] [PATCH] gnu: qemu: Add sysconfdir to configure-flags Oleg Pykhalov
2017-10-06  4:38 ` [bug#28718] Status: " Oleg Pykhalov
2017-10-07 17:58 ` [bug#28718] " Leo Famulari
2017-10-07 20:34 ` Ludovic Courtès [this message]
2017-10-08  7:15   ` Oleg Pykhalov
2017-10-08 15:22     ` Ludovic Courtès
2017-10-09 11:24       ` Oleg Pykhalov
2017-10-09 19:37         ` bug#28718: " Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877ew6k88s.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=28718@debbugs.gnu.org \
    --cc=go.wigust@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).