Subject: bug#18049: closed (Re: bug#18049: Bug in "guix system init")

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 18 Jul 2014 18:42:03 +0000

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 [email-masked].

-- 
18049: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18049
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#18049: Bug in "guix system init"
From: [email-masked] (Ludovic Courtès)
To: Marek Benc <[email-masked]>
Cc: [email-masked]
Date: Fri, 18 Jul 2014 20:41:46 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Marek Benc <[email-masked]> skribis:

> 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.

Good catch.  I believe this is fixed by commit a52127c.

Can you confirm that it works for you?

Thanks,
Ludo’.

Subject: Bug in "guix system init"
From: Marek Benc <[email-masked]>
To: [email-masked]
Date: Thu, 17 Jul 2014 19:06:14 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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