* Set /var/run/current-system to the currently active system

configuration, and use it as a garbage collection root to prevent
  the current configuration from being GC'ed (which was previously
  possible if the configuration was activated using "nixos-rebuild
  test", or if the configuration's generation symlink had been removed
  from the system profile).

  This isn't quite right yet due to a layering problem:
  activate-configuration.sh doesn't know the top-level store path of
  the configuration.

svn path=/nixos/trunk/; revision=8379
This commit is contained in:
Eelco Dolstra 2007-03-20 11:45:59 +00:00
parent 4f3b2290b2
commit 80a0904196

View File

@ -135,3 +135,10 @@ done
# Set the host name.
hostname @hostName@
# Make this configuration the current configuration.
ln -sfn @out@ /var/run/current-system
# Prevent the current configuration from being garbage-collected.
ln -sfn /var/run/current-system /nix/var/nix/gcroots/current-system