mirror of
https://github.com/NixOS/nix-pills
synced 2024-11-10 13:54:14 +00:00
Merge pull request #175 from rski/gc-roots
update GC pill to not mention gcroots/profiles
This commit is contained in:
commit
91487934e2
1 changed files with 5 additions and 4 deletions
|
@ -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