Require the FS to be online before loading secrets

This commit is contained in:
Niten 2023-10-09 18:55:08 -07:00
parent 130086b6a8
commit 169cf84263
1 changed files with 2 additions and 0 deletions

View File

@ -40,7 +40,9 @@ let
description =
"decrypt secret ${secret-name} at ${target-host}:${target-file}.";
wantedBy = [ cfg.secret-target "multi-user.target" ];
requires = [ "local-fs.target" ];
before = [ cfg.secret-target "multi-user.target" ];
after = [ "local-fs.target" ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;