-
I have a Debian 12 system with several ZFS datasets. Some are encryption roots with passphrases. Entering the passphrases on reboot is obviously inconvenient so I'd like to switch this up to pull from a secrets manager (in this case 1Password, but I don't think that's necessarily relevant) with a service account and store the keys in a I have my 1Password I thought this would be as simple as
but things don't always run in the right order so after a reboot I find myself on a box where the key files are present in Has anyone done something similar and got any tips for reliably ordering something to start up and execute before OpenZFS tries importing the pool/datasets? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Perhaps, |
Beta Was this translation helpful? Give feedback.
-
I mean, if you want a specific step to happen after that service runs, then make it happen before that service, not the broader target. |
Beta Was this translation helpful? Give feedback.
-
Just adding some context for anyone who stumbles across this, as this has been ongoing for a while, sometimes working, sometimes not. At some point, I realised the one thing I hadn't been checking was the overall system logfile (i.e. I found that on my Debian system I was seeing several cyclic dependencies:
Essentially, my 1Password "daemon" was depending on having a valid network connection ( So I think my answer here is to remove the
Something I've now found to work...
This has worked for several reboots in a row so seems to have broken the dependency cycle. This seems to have stopped working in Debian 13 :( Under And now it seems OK in Debian 13 again? Confused, but leaving this post up for posterity |
Beta Was this translation helpful? Give feedback.
Just adding some context for anyone who stumbles across this, as this has been ongoing for a while, sometimes working, sometimes not.
At some point, I realised the one thing I hadn't been checking was the overall system logfile (i.e.
journalctl
rather thanjournalctl -u <UNIT>
) so there were many log entries that I hadn't seen. These were mostly related to ordering dependencies, and having a cycle. This cycle did not seem to expose itself withsystemctl list-dependencies
because I think this tool operates on a different level and showed the final results with the cycle resolved. Instead I usedsystemd-analyze dot --no-pager --order > test
and this script to find the cycle.I found that on…