From ee2e82b4266efcb57602008b5973f4c1ef06212c Mon Sep 17 00:00:00 2001 From: marshmallow Date: Wed, 6 May 2026 10:30:27 +1000 Subject: [PATCH] key services: remove unnecessary while loop in key service (#487) --- runtime/module/config.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/runtime/module/config.nix b/runtime/module/config.nix index c7eba07..0d5dc95 100644 --- a/runtime/module/config.nix +++ b/runtime/module/config.nix @@ -37,14 +37,13 @@ echo "waiting to fail if the key is removed..." - while inotifywait -e delete_self "${value.path}"; do - MSG="Key ${value.path} no longer exists." + inotifywait -e delete_self "${value.path}" - systemd-notify --status="$MSG" - echo $MSG + MSG="Key ${value.path} no longer exists." - exit 1 - done + systemd-notify --status="$MSG" + echo $MSG + exit 1 ''; unitConfig = { AssertPathExists = value.path; -- 2.51.2