Merge lp:~hughsaunders/cirros/dropbearkey into lp:cirros
Proposed by
Scott Moser
| Status: | Rejected |
|---|---|
| Rejected by: | Scott Moser |
| Proposed branch: | lp:~hughsaunders/cirros/dropbearkey |
| Merge into: | lp:cirros |
| Diff against target: |
52 lines (+25/-13) 1 file modified
patches-buildroot/dropbear-init-generate-keys.patch (+25/-13) |
| To merge this branch: | bzr merge lp:~hughsaunders/cirros/dropbearkey |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Scott Moser | Approve | ||
|
Review via email:
|
|||
To post a comment you must log in.
Unmerged revisions
- 364. By <email address hidden>
-
Replace invalid keys on dropbear init.

using cirros-per is desirable here, we do want to re-generate keys for a new instance and you're dropping that here.
maybe something like:
how_often= "instance" "always"
# -f = file, -t = type (rsa or dss), -y = print public key (and check)
if [ -e "$file" ] && ! dropbearkey -f "$file" -y; then
how_often=
rm -f "$file"
echo "WARN: removing invalid $file"
fi
cirros-per "$how_often" ...