Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Boot blocked on SSH host keys gen. #223

Closed
vholer opened this issue Mar 26, 2021 · 1 comment
Closed

Boot blocked on SSH host keys gen. #223

vholer opened this issue Mar 26, 2021 · 1 comment

Comments

@vholer
Copy link
Contributor

vholer commented Mar 26, 2021

On Debian/Ubuntu, we generate missing SSH host keys by triggering package reconfiguration, e.g.:

if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
    DEBIAN_FRONTEND=noninteractive dpkg-reconfigure openssh-server
fi

Inside the dpkg-reconfigure, the restart of SSH is triggered. Running this from inside the existing service running early before SSH itself, this can block the one-context-local and also complete machine boot.

Observed on Ubuntu 21.04.

@vholer
Copy link
Contributor Author

vholer commented Mar 29, 2021

Fixed by #224

@vholer vholer closed this as completed Mar 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant