From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1DPz-0004hO-I8 for guix-patches@gnu.org; Sun, 08 Oct 2017 11:23:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1DPy-0000UB-Pf for guix-patches@gnu.org; Sun, 08 Oct 2017 11:23:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47841) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e1DPy-0000U6-M0 for guix-patches@gnu.org; Sun, 08 Oct 2017 11:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e1DPy-0004jP-Cz for guix-patches@gnu.org; Sun, 08 Oct 2017 11:23:02 -0400 Subject: [bug#28718] [PATCH] gnu: qemu: Add sysconfdir to configure-flags. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <87mv552bs5.fsf@gmail.com> <877ew6k88s.fsf@gnu.org> <87tvza3yaq.fsf@gmail.com> Date: Sun, 08 Oct 2017 17:22:44 +0200 In-Reply-To: <87tvza3yaq.fsf@gmail.com> (Oleg Pykhalov's message of "Sun, 08 Oct 2017 10:15:41 +0300") Message-ID: <87vajpekaj.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Oleg Pykhalov Cc: 28718@debbugs.gnu.org Oleg Pykhalov skribis: > Hello Ludovic, > > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > > [...] > >>> 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=3Dbridge0 # =E2=80=A6 >> >> 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? > > It's inspired by libvirt package recipe :-) Looking at commit a4b9392151 for libvirt, I think it=E2=80=99s a trick here= : we do pass --sysconfdir=3D/etc, and sysconfdir=3D/tmp/etc is passed only during the install phase, which I think is a trick to avoid errors while creating $(sysconfdir). But /etc is the actual sysconfdir AIUI. So, WDYT? :-) Ludo=E2=80=99.