From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: The tricky case of "--localstatedir=/var" Date: Sat, 19 Mar 2016 15:11:49 +0100 Message-ID: <87d1qqiml6.fsf@gnu.org> References: <20160216135729.GB13560@novena-choice-citizen.lan> <87k2l0oiub.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51724) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahHbh-00057F-Jp for guix-devel@gnu.org; Sat, 19 Mar 2016 10:11:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahHbd-0005Te-Jj for guix-devel@gnu.org; Sat, 19 Mar 2016 10:11:57 -0400 In-Reply-To: <87k2l0oiub.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 17 Mar 2016 23:11:40 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Jookia <166291@gmail.com> Cc: guix-devel@gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > As discussed on IRC, the expected default values are specified in > . > I think it=E2=80=99s reasonable to keep following these rules. > > However, for the purpose of avoiding bad surprises (configuring Guix > with the wrong localstatedir), I thought we could have a =E2=80=98configu= re=E2=80=99 > check that would compare the chosen localstatedir with the current > installation=E2=80=99s localstatedir, and bail out if they don=E2=80=99t = match. Commit ef5f5c8659b1ca3999e362dfa33478e0a0150ced implements a =E2=80=98confi= gure=E2=80=99 check such that one gets an error for obvious misconfiguration, and a warning when the user passed an explicit --localstatedir flag that does not match (=E2=80=9CI know what I=E2=80=99m doing=E2=80=9D.) I believe that should avoid the most common issue. Comments welcome! Ludo=E2=80=99.