zhiverbox / armbian-userpatches

GNU General Public License v2.0
6 stars 1 forks source link

hard-coded file name in post-user-setup #6

Closed wanxewoj closed 5 years ago

wanxewoj commented 5 years ago

https://github.com/zhiverbox/armbian-userpatches/blob/ce7d6737b20777194549eb88d613ee3cf1cec4e4/overlay/opt/zhiverbox/scripts/etc/profile.d/z_10_post_user_setup_customization.sh#L12

z_10_post_user_setup_customization.sh expects the ssh public key to have the hard-coded name id_ecdsa.pub while the installer (install-zhiverbox.sh) script allows the user to select any *.pub file: https://github.com/zhiverbox/armbian-build/blob/34246b77e521a281058f849a8dc0f38ca5d7af59/install-zHIVErbox.sh#L1686

Hence, for example users selecting a id_rsa.pub key during the image customization run into an error (file not found) during the post user setup.

zciendor commented 5 years ago

Thanks for raising this! The installer and this script should be in sync now and allow for any public key to be selected.