Skip to content

Commit

Permalink
nixos/clevis: do not use systemd-udev-settle
Browse files Browse the repository at this point in the history
See NixOS#73095 for motivations.
In this case we can just use tpm2.target (available since systemd 256).
  • Loading branch information
rnhmjoj committed Jan 9, 2025
1 parent 3f7a10d commit 2b19079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/system/boot/luksroot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1115,8 +1115,8 @@ in
"initrd-switch-root.target"
"shutdown.target"
];
wants = [ "systemd-udev-settle.service" ] ++ optional clevis.useTang "network-online.target";
after = [ "systemd-modules-load.service" "systemd-udev-settle.service" ] ++ optional clevis.useTang "network-online.target";
wants = optional clevis.useTang "network-online.target";
after = [ "systemd-modules-load.service" "tpm2.target" ] ++ optional clevis.useTang "network-online.target";
script = ''
mkdir -p /clevis-${name}
mount -t ramfs none /clevis-${name}
Expand Down

0 comments on commit 2b19079

Please sign in to comment.