aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/profiles.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-09-03 11:12:38 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-09-03 11:13:53 +0200
commitb07167be5aeb91c06ca3487b3d18f6c8f59942a0 (patch)
tree8fec4e55885462c02be95e3ff685eabab71be489 /src/libstore/profiles.cc
parentb74f5cdd2330ea1028eb6b04217bbe20c71a368b (diff)
createGeneration(): Always create an indirect root
This means profiles outside of /nix/var/nix/profiles don't get garbage-collected. It also means we don't need to scan /nix/var/nix/profiles for GC roots anymore, except for compatibility with previously existing generations.
Diffstat (limited to 'src/libstore/profiles.cc')
-rw-r--r--src/libstore/profiles.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/profiles.cc b/src/libstore/profiles.cc
index e91dd781e..9b114f030 100644
--- a/src/libstore/profiles.cc
+++ b/src/libstore/profiles.cc
@@ -105,7 +105,7 @@ Path createGeneration(ref<LocalFSStore> store, Path profile, StorePath outPath)
user environment etc. we've just built. */
Path generation;
makeName(profile, num + 1, generation);
- store->addPermRoot(outPath, generation, false, true);
+ store->addPermRoot(outPath, generation, true);
return generation;
}