From: ludo@gnu.org (Ludovic Courtès)
To: "Carlos Sánchez de La Lama" <csanchezdll@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: /var/guix/gcroot/profiles points to non-existing /mnt subdirectory
Date: Mon, 29 Aug 2016 00:14:04 +0200 [thread overview]
Message-ID: <87zinwwngz.fsf@gnu.org> (raw)
In-Reply-To: <7t1t1d8fm2.fsf@gmail.com> ("Carlos Sánchez de La Lama"'s message of "Thu, 25 Aug 2016 09:36:21 +0200")
Hello,
csanchezdll@gmail.com (Carlos Sánchez de La Lama) skribis:
> In my Guix SD installation, I have the following contents inside
> /var/guix/gcroots:
>
> lrwxrwxrwx 1 root root 18 ago 24 16:45 booted-system -> /run/booted-system
> lrwxrwxrwx 1 root root 19 ago 24 16:45 current-system -> /run/current-system
> lrwxrwxrwx 1 root root 52 ago 24 16:45 grub.cfg -> /gnu/store/rvcr64gcqvay3g68bsrbcp9kahsnh7an-grub.cfg
> lrwxrwxrwx 1 root root 22 ago 24 16:44 profiles -> /mnt/var/guix/profiles
>
> However, /mnt/var/guix/profiles does not exist (there is nothing in
> /mnt). Shouldn't it point to /var/guix/profiles?
Indeed. Having a dangling symlink in there does sound scary since this
is the directory that specifies garbage collector (GC) roots.
Fortunately, the GC automatically looks for roots in /var/guix/profiles
as well:
--8<---------------cut here---------------start------------->8---
Roots LocalStore::findRoots()
{
Roots roots;
/* Process direct roots in {gcroots,manifests,profiles}. */
nix::findRoots(*this, settings.nixStateDir + "/" + gcRootsDir, DT_UNKNOWN, roots);
if (pathExists(settings.nixStateDir + "/manifests"))
nix::findRoots(*this, settings.nixStateDir + "/manifests", DT_UNKNOWN, roots);
nix::findRoots(*this, settings.nixStateDir + "/profiles", DT_UNKNOWN, roots);
return roots;
}
--8<---------------cut here---------------end--------------->8---
… so this dangling symlink is harmless.
Nevertheless, I went ahead and fixed it in commit
334bda9a9e01b73b772b3f30b04abea35e5391f8. You can fix it manually on
your system, or delete it.
Thanks!
Ludo’.
prev parent reply other threads:[~2016-08-28 22:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-25 7:36 /var/guix/gcroot/profiles points to non-existing /mnt subdirectory Carlos Sánchez de La Lama
2016-08-25 7:50 ` Vincent Legoll
2016-08-28 22:14 ` Ludovic Courtès [this message]
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=87zinwwngz.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=csanchezdll@gmail.com \
--cc=guix-devel@gnu.org \
/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).