3
0
Fork 0
forked from mirrors/nixpkgs

Noting the booted-system as a gcroot

svn path=/nixos/trunk/; revision=22228
This commit is contained in:
Lluís Batlle i Rossell 2010-06-12 08:44:51 +00:00
parent b25771532a
commit b1b73f3c08

View file

@ -121,9 +121,15 @@ echo "running activation script..."
@activateConfiguration@ "$systemConfig"
# Record the boot configuration. !!! Should this be a GC root?
# Record the boot configuration.
if test -n "$systemConfig"; then
ln -sfn "$systemConfig" /var/run/booted-system
# Prevent the booted system form being garbage-collected
# If it weren't a gcroot, if we were running a different kernel,
# switched system, and garbage collected all, we could not load
# kernel modules anymore.
ln -sfn /var/run/booted-system /nix/var/nix/gcroots/booted-system
fi