|
@@ -0,0 +1,28 @@
|
|
|
+Description: Avoid race condition between keygen and update, resulting in "Key derivation key not available!"
|
|
|
+Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
|
|
|
+Bug: https://github.com/latchset/tang/issues/52
|
|
|
+Bug-Debian: https://bugs.debian.org/975343
|
|
|
+Last-Update: 2021-01-25
|
|
|
+
|
|
|
+--- a/units/tangd-update.service.in
|
|
|
++++ b/units/tangd-update.service.in
|
|
|
+@@ -1,5 +1,7 @@
|
|
|
+ [Unit]
|
|
|
+ Description=Tang Server key update script
|
|
|
++Requires=tangd-keygen.service
|
|
|
++After=tangd-keygen.service
|
|
|
+
|
|
|
+ [Service]
|
|
|
+ Type=oneshot
|
|
|
+--- a/units/tangd.socket.in
|
|
|
++++ b/units/tangd.socket.in
|
|
|
+@@ -1,9 +1,7 @@
|
|
|
+ [Unit]
|
|
|
+ Description=Tang Server socket
|
|
|
+-Requires=tangd-keygen.service
|
|
|
+ Requires=tangd-update.service
|
|
|
+ Requires=tangd-update.path
|
|
|
+-After=tangd-keygen.service
|
|
|
+ After=tangd-update.service
|
|
|
+
|
|
|
+ [Socket]
|