lakitu: Fix ssh hostkey verification error
This CL fixes the error by including the following changes:
1. Include a patch to write hostkeys to the stateful partition.
Currently, the sshd fetches hostkeys from /mnt/stateful_partition/etc/ssh,
however the guest agent daemon generates and writes ssh hostkeys to /etc/ssh.
We need the guest agent to write ssh hostkeys to the stateful_partition
if we want to support publishing of hostkeys to instance metadata.
2. Modify fix-systemd-units-dependencies patch to have sshd.service
block on google-instance-setup.service. sshd.service currently has a
script which runs before sshd.service is launched which generates hostkeys
to the stateful partition. Since we need to use the hostkeys that
google-instance-setup.service is generating, we will need sshd.service
to run after google-instance-setup.service.
BUG=b:147559155
TEST=cos_tryjob
RELEASE_NOTE=Fix ssh hostkey verification error
Change-Id: I9b3a3afef7b8eb5b739ad6126a7983423ab7b090
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/board-overlays/+/2063380
Reviewed-by: Robert Kolchmeyer <rkolchmeyer@google.com>
Reviewed-by: Dexter Rivera <riverade@chromium.org>
Commit-Queue: Dexter Rivera <riverade@chromium.org>
Tested-by: Dexter Rivera <riverade@chromium.org>
(cherry picked from commit 8a80b6d7a4e99d55c1d1ec324baf02404e982d32)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/overlays/board-overlays/+/2071061
4 files changed