Drewsif / PiShrink

Make your pi images smaller!
MIT License
3.5k stars 644 forks source link

Fixed ssh host keys not regenerating #247

Closed shatteredsword closed 2 years ago

shatteredsword commented 2 years ago

When using the -p option, the ssh host keys would be deleted, but not regenerated, rendering ssh unusable. fixes #168 but relies on the host system to regenerate keys on non-Raspbian distros

shatteredsword commented 2 years ago

I created a much more robust solution that should work on a larger range of distros, but it needs testing and I'm not sure if relying on the host system to generate keys is an acceptable fix or not

shatteredsword commented 2 years ago

tested on