Thanks Steve. I don't have much time these days to work on this stuff so
no worries about the delay. I'll get this in and turn the crank on a
bugfix release.
Thanks,
Philip
On 12/12/19 10:52 AM, Steven Clark wrote:
Here's a version with a sign-off. By the time I hit a lull I had
to
resynthesize the repository used to build the patch. At least I get
some process practice with something innocuous this way.
From 4b95f1d7988a2f4d4d5e1f7b19602a8f0b1c66a4 Mon Sep 17 00:00:00 2001
From: Steven Clark <davolfman(a)gmail.com>
Date: Wed, 27 Nov 2019 21:10:00 +0000
Subject: [PATCH 1/1] Hold Resource Manager until tpm is accessible
In testing in an unusual boot scenario it was discovered that
tpm2-abrmd.service was starting before udev had changed ownership
of the TPM device from root to TSS. This patch changes the
Systemd unit file to force a udev settle before starting the
resource manager service.
Signed-off-by: Steven Clark <davolfman(a)gmail.com>
---
dist/tpm2-abrmd.service.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dist/tpm2-abrmd.service.in b/dist/tpm2-abrmd.service.in
index 00aa031..4300cb3 100644
--- a/dist/tpm2-abrmd.service.in
+++ b/dist/tpm2-abrmd.service.in
@@ -1,5 +1,7 @@
[Unit]
Description=TPM2 Access Broker and Resource Management Daemon
+After=systemd-udev-settle.service
+Requires=systemd-udev-settle.service
[Service]
Type=dbus