diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-09-03 11:12:38 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-09-03 11:13:53 +0200 |
commit | b07167be5aeb91c06ca3487b3d18f6c8f59942a0 (patch) | |
tree | 8fec4e55885462c02be95e3ff685eabab71be489 /src | |
parent | b74f5cdd2330ea1028eb6b04217bbe20c71a368b (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')
-rw-r--r-- | src/libstore/profiles.cc | 2 |
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; } |