From unknown Mon Aug 18 09:06:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#18049: Bug in "guix system init" Resent-From: Marek Benc Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 18 Jul 2014 06:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18049 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 18049@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14056638046459 (code B ref -1); Fri, 18 Jul 2014 06:11:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jul 2014 06:10:04 +0000 Received: from localhost ([127.0.0.1]:57844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X81Mo-0001g4-JI for submit@debbugs.gnu.org; Fri, 18 Jul 2014 02:10:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36139) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X7p8m-00083d-Sd for submit@debbugs.gnu.org; Thu, 17 Jul 2014 13:06:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7p8Y-0005Nh-HA for submit@debbugs.gnu.org; Thu, 17 Jul 2014 13:06:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_05, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7p8Y-0005Na-E1 for submit@debbugs.gnu.org; Thu, 17 Jul 2014 13:06:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7p8P-0002rj-9L for bug-guix@gnu.org; Thu, 17 Jul 2014 13:06:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7p8G-0005LX-4B for bug-guix@gnu.org; Thu, 17 Jul 2014 13:06:21 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:48147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7p8F-0005LQ-TF for bug-guix@gnu.org; Thu, 17 Jul 2014 13:06:12 -0400 Received: by mail-wg0-f42.google.com with SMTP id l18so2318869wgh.13 for ; Thu, 17 Jul 2014 10:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:to:content-type:date:message-id:mime-version :content-transfer-encoding; bh=KbU+320JfLShG1rCbvK3+shHOpcg4ZXErcGvzsVRG6U=; b=MNFnjHlNSC/+TG1kXU5QxwhWSy+WnxPWhs19/98TbnVJggXN2ZeHt2F/LATsJMSMEC B4F+cE30giJ2cwfcu/Ru4t3z+Q4TqGuLet4I0FtAXjszpnn0/Y+okj3q+nndOsSDholo uUOwOu2vSgMAHATdXbqhBcgc3tDVdKsXB8plKFV0cQUpP3V9niwdU6wJ01F5dVUFi4U1 0rVq6O/sv6V00FoA9sivIMmg3sAkryFsJf4o41GF05egicyKvemxwF6gfhdgBrmwm45V oE3B07feu99tf/oL43jxkJadiISA9T1gvLgr8z9Sz7R8NmQHJOApjVat4bbUl/gfn23O Jq0w== X-Received: by 10.180.20.206 with SMTP id p14mr24152601wie.26.1405616769863; Thu, 17 Jul 2014 10:06:09 -0700 (PDT) Received: from [192.168.0.56] ([213.215.123.38]) by mx.google.com with ESMTPSA id i12sm7449998wjr.32.2014.07.17.10.06.07 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 17 Jul 2014 10:06:09 -0700 (PDT) From: Marek Benc Content-Type: text/plain; charset="UTF-8" Date: Thu, 17 Jul 2014 19:06:14 +0200 Message-ID: <1405616774.2096.6.camel@dusan-netbook.homenetwork> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Mailman-Approved-At: Fri, 18 Jul 2014 02:10:01 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) The var/guix directory gets installed according to the configuration of the host Guix, instead of the installed Guix (that is, /var). This means that if someone (like me) configured the host Guix with --prefix=/usr/local, the directory will be installed into /usr/local/var/guix, which won't work, and will cause the installed guix to see an empty /gnu/store. This is dangerous because then, it will try to download glibc, and while doing that, it will delete the existing one in /gnu/store, and kill the operating system. Workarounds: 1. Configure the host guix with --prefix=/ or 2. Once the system is initialized, move the var/guix folder (eg, from /usr/local/var) to /var From unknown Mon Aug 18 09:06:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Marek Benc Subject: bug#18049: closed (Re: bug#18049: Bug in "guix system init") Message-ID: References: <87bnsmldat.fsf@gnu.org> <1405616774.2096.6.camel@dusan-netbook.homenetwork> X-Gnu-PR-Message: they-closed 18049 X-Gnu-PR-Package: guix Reply-To: 18049@debbugs.gnu.org Date: Fri, 18 Jul 2014 18:42:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1405708923-21445-1" This is a multi-part message in MIME format... ------------=_1405708923-21445-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #18049: Bug in "guix system init" which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 18049@debbugs.gnu.org. --=20 18049: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D18049 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1405708923-21445-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 18049-done) by debbugs.gnu.org; 18 Jul 2014 18:41:54 +0000 Received: from localhost ([127.0.0.1]:58595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8D6P-0005ZX-8Z for submit@debbugs.gnu.org; Fri, 18 Jul 2014 14:41:53 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:35837) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X8D6L-0005ZM-9Y for 18049-done@debbugs.gnu.org; Fri, 18 Jul 2014 14:41:50 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 5FE9432CB; Fri, 18 Jul 2014 20:41:47 +0200 (CEST) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id llG2fY4uH0kN; Fri, 18 Jul 2014 20:41:47 +0200 (CEST) Received: from pluto (host86-182-206-44.range86-182.btcentralplus.com [86.182.206.44]) by hera.aquilenet.fr (Postfix) with ESMTPSA id D025A2C31; Fri, 18 Jul 2014 20:41:46 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Marek Benc Subject: Re: bug#18049: Bug in "guix system init" References: <1405616774.2096.6.camel@dusan-netbook.homenetwork> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 30 Messidor an 222 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Fri, 18 Jul 2014 20:41:46 +0200 In-Reply-To: <1405616774.2096.6.camel@dusan-netbook.homenetwork> (Marek Benc's message of "Thu, 17 Jul 2014 19:06:14 +0200") Message-ID: <87bnsmldat.fsf@gnu.org> User-Agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18049-done Cc: 18049-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Marek Benc skribis: > This means that if someone (like me) configured the host Guix with > --prefix=3D/usr/local, the directory will be installed > into /usr/local/var/guix, which won't work, and will cause the installed > guix to see an empty /gnu/store. Good catch. I believe this is fixed by commit a52127c. Can you confirm that it works for you? Thanks, Ludo=E2=80=99. ------------=_1405708923-21445-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Jul 2014 06:10:04 +0000 Received: from localhost ([127.0.0.1]:57844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X81Mo-0001g4-JI for submit@debbugs.gnu.org; Fri, 18 Jul 2014 02:10:03 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36139) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X7p8m-00083d-Sd for submit@debbugs.gnu.org; Thu, 17 Jul 2014 13:06:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7p8Y-0005Nh-HA for submit@debbugs.gnu.org; Thu, 17 Jul 2014 13:06:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_05, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7p8Y-0005Na-E1 for submit@debbugs.gnu.org; Thu, 17 Jul 2014 13:06:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7p8P-0002rj-9L for bug-guix@gnu.org; Thu, 17 Jul 2014 13:06:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7p8G-0005LX-4B for bug-guix@gnu.org; Thu, 17 Jul 2014 13:06:21 -0400 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:48147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7p8F-0005LQ-TF for bug-guix@gnu.org; Thu, 17 Jul 2014 13:06:12 -0400 Received: by mail-wg0-f42.google.com with SMTP id l18so2318869wgh.13 for ; Thu, 17 Jul 2014 10:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:from:to:content-type:date:message-id:mime-version :content-transfer-encoding; bh=KbU+320JfLShG1rCbvK3+shHOpcg4ZXErcGvzsVRG6U=; b=MNFnjHlNSC/+TG1kXU5QxwhWSy+WnxPWhs19/98TbnVJggXN2ZeHt2F/LATsJMSMEC B4F+cE30giJ2cwfcu/Ru4t3z+Q4TqGuLet4I0FtAXjszpnn0/Y+okj3q+nndOsSDholo uUOwOu2vSgMAHATdXbqhBcgc3tDVdKsXB8plKFV0cQUpP3V9niwdU6wJ01F5dVUFi4U1 0rVq6O/sv6V00FoA9sivIMmg3sAkryFsJf4o41GF05egicyKvemxwF6gfhdgBrmwm45V oE3B07feu99tf/oL43jxkJadiISA9T1gvLgr8z9Sz7R8NmQHJOApjVat4bbUl/gfn23O Jq0w== X-Received: by 10.180.20.206 with SMTP id p14mr24152601wie.26.1405616769863; Thu, 17 Jul 2014 10:06:09 -0700 (PDT) Received: from [192.168.0.56] ([213.215.123.38]) by mx.google.com with ESMTPSA id i12sm7449998wjr.32.2014.07.17.10.06.07 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 17 Jul 2014 10:06:09 -0700 (PDT) Subject: Bug in "guix system init" From: Marek Benc To: bug-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Date: Thu, 17 Jul 2014 19:06:14 +0200 Message-ID: <1405616774.2096.6.camel@dusan-netbook.homenetwork> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 18 Jul 2014 02:10:01 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) The var/guix directory gets installed according to the configuration of the host Guix, instead of the installed Guix (that is, /var). This means that if someone (like me) configured the host Guix with --prefix=/usr/local, the directory will be installed into /usr/local/var/guix, which won't work, and will cause the installed guix to see an empty /gnu/store. This is dangerous because then, it will try to download glibc, and while doing that, it will delete the existing one in /gnu/store, and kill the operating system. Workarounds: 1. Configure the host guix with --prefix=/ or 2. Once the system is initialized, move the var/guix folder (eg, from /usr/local/var) to /var ------------=_1405708923-21445-1--