diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2017-01-31 11:40:22 +0100 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2017-01-31 11:40:22 +0100 |
commit | 50d87b281f5ea6d6dabe13dfccf43f37ec29c1eb (patch) | |
tree | 3aea80c96b4a7d9899ab4755f33682ab27b54c09 | |
parent | 741e998382e7c66664576006b048c78daa1a341d (diff) |
stretch-arm*: generates SSH DSA key
This is a workaround until https://bugs.debian.org/850614 is available in
stretch. Without the DSA key, the ssh.service will fail to start at boot.
Change-Id: I1f9e3fcfde5510e666a5c8b1b0007d37e704da08
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
6 files changed, 18 insertions, 0 deletions
diff --git a/stretch-arm64-alip/customization/includes.chroot/etc/rc.local b/stretch-arm64-alip/customization/includes.chroot/etc/rc.local index bedc8cf..1f1d743 100755 --- a/stretch-arm64-alip/customization/includes.chroot/etc/rc.local +++ b/stretch-arm64-alip/customization/includes.chroot/etc/rc.local @@ -14,4 +14,7 @@ # Generate the SSH keys if non-existent test -f /etc/ssh/ssh_host_rsa_key || dpkg-reconfigure openssh-server +# workaround for https://bugs.debian.org/850614 +test -f /etc/ssh/ssh_host_dsa_key || ssh-keygen -q -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa + exit 0 diff --git a/stretch-arm64-developer/customization/includes.chroot/etc/rc.local b/stretch-arm64-developer/customization/includes.chroot/etc/rc.local index bedc8cf..1f1d743 100755 --- a/stretch-arm64-developer/customization/includes.chroot/etc/rc.local +++ b/stretch-arm64-developer/customization/includes.chroot/etc/rc.local @@ -14,4 +14,7 @@ # Generate the SSH keys if non-existent test -f /etc/ssh/ssh_host_rsa_key || dpkg-reconfigure openssh-server +# workaround for https://bugs.debian.org/850614 +test -f /etc/ssh/ssh_host_dsa_key || ssh-keygen -q -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa + exit 0 diff --git a/stretch-arm64-installer/customization/includes.chroot/etc/rc.local b/stretch-arm64-installer/customization/includes.chroot/etc/rc.local index bedc8cf..1f1d743 100755 --- a/stretch-arm64-installer/customization/includes.chroot/etc/rc.local +++ b/stretch-arm64-installer/customization/includes.chroot/etc/rc.local @@ -14,4 +14,7 @@ # Generate the SSH keys if non-existent test -f /etc/ssh/ssh_host_rsa_key || dpkg-reconfigure openssh-server +# workaround for https://bugs.debian.org/850614 +test -f /etc/ssh/ssh_host_dsa_key || ssh-keygen -q -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa + exit 0 diff --git a/stretch-armhf-alip/customization/includes.chroot/etc/rc.local b/stretch-armhf-alip/customization/includes.chroot/etc/rc.local index bedc8cf..1f1d743 100755 --- a/stretch-armhf-alip/customization/includes.chroot/etc/rc.local +++ b/stretch-armhf-alip/customization/includes.chroot/etc/rc.local @@ -14,4 +14,7 @@ # Generate the SSH keys if non-existent test -f /etc/ssh/ssh_host_rsa_key || dpkg-reconfigure openssh-server +# workaround for https://bugs.debian.org/850614 +test -f /etc/ssh/ssh_host_dsa_key || ssh-keygen -q -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa + exit 0 diff --git a/stretch-armhf-developer/customization/includes.chroot/etc/rc.local b/stretch-armhf-developer/customization/includes.chroot/etc/rc.local index bedc8cf..1f1d743 100755 --- a/stretch-armhf-developer/customization/includes.chroot/etc/rc.local +++ b/stretch-armhf-developer/customization/includes.chroot/etc/rc.local @@ -14,4 +14,7 @@ # Generate the SSH keys if non-existent test -f /etc/ssh/ssh_host_rsa_key || dpkg-reconfigure openssh-server +# workaround for https://bugs.debian.org/850614 +test -f /etc/ssh/ssh_host_dsa_key || ssh-keygen -q -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa + exit 0 diff --git a/stretch-armhf-installer/customization/includes.chroot/etc/rc.local b/stretch-armhf-installer/customization/includes.chroot/etc/rc.local index bedc8cf..1f1d743 100755 --- a/stretch-armhf-installer/customization/includes.chroot/etc/rc.local +++ b/stretch-armhf-installer/customization/includes.chroot/etc/rc.local @@ -14,4 +14,7 @@ # Generate the SSH keys if non-existent test -f /etc/ssh/ssh_host_rsa_key || dpkg-reconfigure openssh-server +# workaround for https://bugs.debian.org/850614 +test -f /etc/ssh/ssh_host_dsa_key || ssh-keygen -q -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa + exit 0 |