diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-15 15:05:16 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-08-15 15:05:16 -0400 |
commit | b5dfd387ba8bf1048d95d623ec6c150bc3b9083c (patch) | |
tree | 21103fe41b46aef2f406625a02a5fef3fac996f5 | |
parent | 9aa93cbd1760a43a22bc76b401a5dd9b15105edb (diff) |
osi-mk.d: dhcpcd: Avoid TLS failures
-rw-r--r-- | osi-mk.d/systemd-dhcpcd.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/osi-mk.d/systemd-dhcpcd.sh b/osi-mk.d/systemd-dhcpcd.sh index 96da43d..9913d9e 100644 --- a/osi-mk.d/systemd-dhcpcd.sh +++ b/osi-mk.d/systemd-dhcpcd.sh @@ -1,5 +1,11 @@ #!/hint/bash +# Also enable haveged. Without it, TLS will be unavailable for a +# while even after network-online.target because getrandom(2) will +# block for so long that the connection will time out. + +packages+=('haveged') + post_install+=(10:dhcpcd:post_install) dhcpcd:post_install() { local arg_mountpoint=$1 @@ -18,4 +24,6 @@ dhcpcd:post_install() { Wants=systemd-udev-settle.service After=systemd-udev-settle.service EOT + + systemctl --root="$arg_mountpoint" enable haveged.service } |