mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
* 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:
parent
4f3b2290b2
commit
80a0904196
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user