mirror of
https://github.com/NixOS/nix-pills
synced 2024-09-19 04:00:13 -04:00
update GC pill to not mention gcroots/profiles
This was removed in 2013 from nix v1.6. Don't point readers of the pills towards a link that no longer is there. fixes #105
This commit is contained in:
parent
f1acd7ed9f
commit
8e69e5e771
|
@ -147,10 +147,11 @@
|
|||
<para>
|
||||
However we removed the link from
|
||||
<filename>/nix/var/nix/profiles</filename>, not from
|
||||
<filename>/nix/var/nix/gcroots</filename>. Turns out, that
|
||||
<filename>/nix/var/nix/gcroots/profiles</filename> is a symlink to
|
||||
<filename>/nix/var/nix/profiles</filename>. That is very handy. It means
|
||||
any profile and its generations are GC roots.
|
||||
<filename>/nix/var/nix/gcroots</filename>. Turns out, Nix
|
||||
also treats <filename>/nix/var/nix/profiles</filename> as a GC root.
|
||||
That is very handy. It means any profile and its generations are GC roots.
|
||||
There are other paths that are taken into account as well, for example <filename>/run/booted-system</filename> on NixOS.
|
||||
The command <command>nix-store --gc --print-roots</command> prints all the paths considered before performing a GC.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue