about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--scripts/nix-pull.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/nix-pull.in b/scripts/nix-pull.in
index d2979721aafb..51c7e681a5a7 100644
--- a/scripts/nix-pull.in
+++ b/scripts/nix-pull.in
@@ -24,6 +24,14 @@ if (! -e $manifestDir) {
 }
 
 
+# Make sure that the manifests directory is scanned for GC roots.
+my $gcRootsDir = "$stateDir/gcroots";
+my $manifestDirLink = "$gcRootsDir/manifests";
+if (! -l $manifestDirLink) {
+    symlink($manifestDir, $manifestDirLink) or die "cannot create symlink `$manifestDirLink'";
+}
+
+
 # Process the URLs specified on the command line.
 my %narFiles;
 my %patches;