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 | |
parent | d17d4b70c95c68280fa644ba4e72d9fde6db48a2 (diff) | |
download | nixlib-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.tar nixlib-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.tar.gz nixlib-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.tar.bz2 nixlib-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.tar.lz nixlib-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.tar.xz nixlib-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.tar.zst nixlib-bd77849b2f5b15f17a40f1142e8a90a02c6c8ddd.zip |
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.
-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 4a1983167957..01cfe8a02e10 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 |