diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-04-14 17:09:59 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-04-14 17:09:59 +0000 |
commit | e3879fe365e539004942870b0757169cf757600f (patch) | |
tree | 2ba7e58ed861b02eacc4b7ddaf2e677f1ef0e76c /modules/system/activation/top-level.nix | |
parent | 91b91cc847a97c7fce814d0c2583215620eecb2b (diff) | |
download | nixpkgs-e3879fe365e539004942870b0757169cf757600f.tar nixpkgs-e3879fe365e539004942870b0757169cf757600f.tar.gz nixpkgs-e3879fe365e539004942870b0757169cf757600f.tar.bz2 nixpkgs-e3879fe365e539004942870b0757169cf757600f.tar.lz nixpkgs-e3879fe365e539004942870b0757169cf757600f.tar.xz nixpkgs-e3879fe365e539004942870b0757169cf757600f.tar.zst nixpkgs-e3879fe365e539004942870b0757169cf757600f.zip |
* Store the NixOS version in the top-level derivation.
* Change the name of the top-level derivation from "system" to "nixos-<version>". * Show the NixOS version in the GRUB boot menu instead of the kernel version. svn path=/nixos/trunk/; revision=33785
Diffstat (limited to 'modules/system/activation/top-level.nix')
-rw-r--r-- | modules/system/activation/top-level.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/system/activation/top-level.nix b/modules/system/activation/top-level.nix index f1bc4eea597..6ebc1fd68e1 100644 --- a/modules/system/activation/top-level.nix +++ b/modules/system/activation/top-level.nix @@ -120,9 +120,10 @@ let ln -s ${config.system.build.upstart} $out/upstart ln -s ${config.hardware.firmware} $out/firmware - echo "$kernelParams" > $out/kernel-params - echo "$configurationName" > $out/configuration-name - echo "${toString config.system.build.upstart.interfaceVersion}" > $out/upstart-interface-version + echo -n "$kernelParams" > $out/kernel-params + echo -n "$configurationName" > $out/configuration-name + echo -n "${toString config.system.build.upstart.interfaceVersion}" > $out/upstart-interface-version + echo -n "$nixosVersion" > $out/nixos-version mkdir $out/fine-tune childCount=0 @@ -145,7 +146,7 @@ let # script `switch-to-configuration' that activates the configuration # and makes it bootable. system = pkgs.stdenv.mkDerivation { - name = "system"; + name = "nixos-${config.system.nixosVersion}"; buildCommand = systemBuilder; inherit children; kernelParams = @@ -153,6 +154,7 @@ let menuBuilder = config.system.build.menuBuilder; initScriptBuilder = config.system.build.initScriptBuilder; activationScript = config.system.activationScripts.script; + nixosVersion = config.system.nixosVersion; jobs = map (j: j.name) (attrValues config.jobs); |