godarch / darch

A tool for building and booting stateless and immutable images, bare metal.
https://godarch.com/
MIT License
832 stars 32 forks source link

error on installing darch's ssh hook #20

Closed burkostya closed 6 years ago

burkostya commented 6 years ago

`darch stage upload i3' results with next error

cp: cannot stat /etc/ssh/ssh_host_* file or directory does not exists

on first run and with

cp: cannot stat /etc/darch/ssh/default/ssh_host_* file or directory does not exists

on second and any future runs

I think it raises from here https://github.com/godarch/darch/blob/develop/scripts/hooks/ssh Disabling ssh hook fixes error

pauldotknopf commented 6 years ago

The script currently expects files to exists at /etc/ssh/ssh_host_*. This would be patched to fail nicely if they don't exist.

In the mean time, instead openssh-server on your host machine to auto-generate those files.