diff options
author | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2018-04-12 18:15:42 +0300 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2018-04-16 20:39:51 +0300 |
commit | bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd (patch) | |
tree | 36a04a780a86179c0ca2f26be547659773b152bc /nixos | |
parent | d17d4b70c95c68280fa644ba4e72d9fde6db48a2 (diff) |
nixos/installer/channel: Add some files that the channel also has
Nothing probably uses this, but let's be pedantic and have the pre-included channel on the install media be as close as possible to what 'nix-channel --update' will give them. The only remaining difference is that the channel adds programs.sqlite, which is fundamentally unfixable.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/installer/cd-dvd/channel.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/installer/cd-dvd/channel.nix b/nixos/modules/installer/cd-dvd/channel.nix index 4a1983167957d..01cfe8a02e10d 100644 --- a/nixos/modules/installer/cd-dvd/channel.nix +++ b/nixos/modules/installer/cd-dvd/channel.nix @@ -21,7 +21,9 @@ let if [ ! -e $out/nixos/nixpkgs ]; then ln -s . $out/nixos/nixpkgs fi + echo -n ${config.system.nixos.revision} > $out/nixos/.git-revision echo -n ${config.system.nixos.versionSuffix} > $out/nixos/.version-suffix + echo ${config.system.nixos.versionSuffix} | sed -e s/pre// > $out/nixos/svn-revision ''; in |