We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae394c commit 0d11f67Copy full SHA for 0d11f67
extensions/fs-cryptroot-support.sh
@@ -74,7 +74,7 @@ function pre_install_kernel_debs__adjust_dropbear_configuration() {
74
}
75
76
function post_umount_final_image__export_private_key(){
77
- if [[ $CRYPTROOT_SSH_UNLOCK == yes ]]; then
+ if [[ $CRYPTROOT_SSH_UNLOCK == yes && -f "${DROPBEAR_DIR}"/id_ecdsa ]]; then
78
CRYPTROOT_SSH_UNLOCK_KEY_PATH="${DESTIMG}/${version}.key"
79
# copy dropbear ssh key to image output dir for convenience
80
cp "${DROPBEAR_DIR}"/id_ecdsa "${CRYPTROOT_SSH_UNLOCK_KEY_PATH}"
0 commit comments