about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2022-08-08 11:53:10 +0200
committerGitHub <noreply@github.com>2022-08-08 11:53:10 +0200
commit661c29c806409f2883f2445e42583206426ffd46 (patch)
treeaa9e06c7cffb5fe4037d6fd05b39e3e91d1e7644 /nixos/modules/system
parent251f5be0bc0606fb085d21d3218883187a702782 (diff)
parent9aa588ecc394f140681a0d68b635b3cf45ade411 (diff)
downloadnixlib-661c29c806409f2883f2445e42583206426ffd46.tar
nixlib-661c29c806409f2883f2445e42583206426ffd46.tar.gz
nixlib-661c29c806409f2883f2445e42583206426ffd46.tar.bz2
nixlib-661c29c806409f2883f2445e42583206426ffd46.tar.lz
nixlib-661c29c806409f2883f2445e42583206426ffd46.tar.xz
nixlib-661c29c806409f2883f2445e42583206426ffd46.tar.zst
nixlib-661c29c806409f2883f2445e42583206426ffd46.zip
Merge pull request #181222 from hercules-ci/module-specialArgs
`_module.specialArgs` + unit test for nixos/documentation module
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/systemd/initrd.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd/initrd.nix b/nixos/modules/system/boot/systemd/initrd.nix
index 0351453a6587..888653469ed7 100644
--- a/nixos/modules/system/boot/systemd/initrd.nix
+++ b/nixos/modules/system/boot/systemd/initrd.nix
@@ -374,6 +374,9 @@ in {
         '';
         "/etc/modprobe.d/debian.conf".source = pkgs.kmod-debian-aliases;
 
+        "/etc/os-release".source = config.boot.initrd.osRelease;
+        "/etc/initrd-release".source = config.boot.initrd.osRelease;
+
       };
 
       storePaths = [