cirros-dev / cirros

120 stars 33 forks source link

0.6.2: SSH hostkeys are regenerated after reboot #118

Closed osfrickler closed 2 months ago

osfrickler commented 2 months ago

After a reboot, ssh to the cirros instance is failing because the hostkeys have changed. The reason seems to be that /etc/dropbear is a symlink to /var/run/dropbear, and /var/run again is a symlink to /run, which is a tmpfs. The expected result would be for the hostkeys to be stored permanently so that they are persisted after a reboot.

This may also be related to https://github.com/cirros-dev/cirros/pull/110.

osfrickler commented 2 months ago

Seems the current handling was introduced in https://github.com/cirros-dev/cirros/pull/45 , which missed the "remove the symlink on RW fs" part introduced in https://github.com/buildroot/buildroot/commit/e7d04dd2df8bb935c61f7c814ee88eba7e75b5e4. Will create a patch that tries to do both, although I'm not sure where in the cirros context the root fs would actually be RO.