initrd-secrets test does not test that a secret actually ends up in the initrd #106

Closed
opened 2023-02-19 21:29:41 +00:00 by nikstur · 0 comments
nikstur commented 2023-02-19 21:29:41 +00:00 (Migrated from github.com)

The test executes a grept that is supposed to fail if it does not find the secret in the initrd or if the contents are not as expected with boot.initrd.preDeviceCommands. However, even if this grep fails, the system comes up normally and the tests succeeds.

See: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/initrd-secrets.nix for a better way to test this.

The test executes a grept that is supposed to fail if it does not find the secret in the initrd or if the contents are not as expected with `boot.initrd.preDeviceCommands`. However, even if this grep fails, the system comes up normally and the tests succeeds. See: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/initrd-secrets.nix for a better way to test this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: raito/lanzaboote#106
No description provided.