Merge pull request #237823 from lilyinstarlight/fix/systemd-initrd-no-rev

nixos/version: remove nixpkgs commit rev from initrd
This commit is contained in:
Will Fancher 2023-06-24 20:25:32 -04:00 committed by GitHub
commit b154feadb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ let
VARIANT_ID = cfg.variant_id;
};
initrdReleaseContents = osReleaseContents // {
initrdReleaseContents = (removeAttrs osReleaseContents [ "BUILD_ID" ]) // {
PRETTY_NAME = "${osReleaseContents.PRETTY_NAME} (Initrd)";
};
initrdRelease = pkgs.writeText "initrd-release" (attrsToText initrdReleaseContents);