mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Don't attempt to copy id_ecdsa if it is not needed.
This commit is contained in:
@@ -74,7 +74,7 @@ function pre_install_kernel_debs__adjust_dropbear_configuration() {
|
||||
}
|
||||
|
||||
function post_umount_final_image__export_private_key(){
|
||||
if [[ $CRYPTROOT_SSH_UNLOCK == yes ]]; then
|
||||
if [[ $CRYPTROOT_SSH_UNLOCK == yes && -f "${DROPBEAR_DIR}"/id_ecdsa ]]; then
|
||||
CRYPTROOT_SSH_UNLOCK_KEY_PATH="${DESTIMG}/${version}.key"
|
||||
# copy dropbear ssh key to image output dir for convenience
|
||||
cp "${DROPBEAR_DIR}"/id_ecdsa "${CRYPTROOT_SSH_UNLOCK_KEY_PATH}"
|
||||
|
||||
Reference in New Issue
Block a user