unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Jimmy Thrasibule <jimmy.thrasibule@gmail.com>
To: 39195@debbugs.gnu.org
Subject: bug#39195: guix pull switching between profiles/per-user and profiles/default
Date: Sun, 19 Jan 2020 20:22:58 +0100	[thread overview]
Message-ID: <CAMqSRmDaD2N+4Z0RjYHQsFzky2-wUfQ-hLmMZGAANYVvpD230g@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1449 bytes --]

After a fresh Guix install, when calling subsequent ``guix pull`` it will
always try to migrate the profile at ``/root/.cong/guix/current`` between
``/var/guix/profiles/default`` and ``/var/guix/profiles/per-user/root``.

The issue is that if there are any existing links in the target folder,
``guix pull`` will fail:


     guix pull: error: symlink: File exists:
"/var/guix/profiles/per-user/root/current-guix


For example after unpacking the store, the first ``guix pull`` will migrate
the profile to ``profiles/default``:


    # ls -l .config/guix/
    total 0
    lrwxrwxrwx    1 root     root            45 Jan 19 18:33 current ->
/var/guix/profiles/per-user/root/current-guix
    # guix pull
    Migrating profile generations to '/var/guix/profiles/default'...
    Updating channel 'guix' from Git repository at '
https://git.savannah.gnu.org/git/guix.git'...
    [...]


Then calling ``guix pull`` again will fail:


    # ls -l .config/guix/
    total 0
    lrwxrwxrwx    1 root     root            39 Jan 19 18:37 current ->
/var/guix/profiles/default/current-guix
    # guix pull
    Migrating profile generations to '/var/guix/profiles/per-user/root'...
    guix pull: error: symlink: File exists:
"/var/guix/profiles/per-user/root/current-guix"


The workaround is to link back the profile to ``per-user/root`` and delete
``/var/guix/profiles/default/current-guix*``. After this action, any other
``guix pull`` will run as expected.

[-- Attachment #2: Type: text/html, Size: 2064 bytes --]

             reply	other threads:[~2020-01-19 19:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-19 19:22 Jimmy Thrasibule [this message]
2020-01-19 22:08 ` bug#39195: guix pull switching between profiles/per-user and profiles/default Ludovic Courtès
2020-01-20  9:26   ` Jimmy Thrasibule via Bug reports for GNU Guix
2020-01-20 15:45     ` Ludovic Courtès
2020-01-20 17:06       ` zimoun
2020-01-21  9:04         ` Ludovic Courtès
2020-01-21 13:49           ` zimoun

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=CAMqSRmDaD2N+4Z0RjYHQsFzky2-wUfQ-hLmMZGAANYVvpD230g@mail.gmail.com \
    --to=jimmy.thrasibule@gmail.com \
    --cc=39195@debbugs.gnu.org \
    --cc=jimmy@thrasibule.mx \
    /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).