remove unused pubkey

This commit is contained in:
Jörg Thalheim 2024-09-09 15:56:38 +02:00 committed by mergify[bot]
parent c92ddabd3b
commit 105d26abdf

View File

@ -329,7 +329,6 @@ fi
ssh_settings=$(ssh "${ssh_args[@]}" -G "${ssh_connection}")
ssh_user=$(echo "$ssh_settings" | awk '/^user / { print $2 }')
ssh_host=$(echo "$ssh_settings" | awk '/^hostname / { print $2 }')
ssh_port=$(echo "$ssh_settings" | awk '/^port / { print $2 }')
step Uploading install SSH keys
until
@ -548,14 +547,6 @@ if [[ ${is_installer-n} == "y" ]] && [[ ${ssh_user} != "root" ]]; then
ssh_connection="root@${ssh_host}"
fi
if [[ ${build_on_remote-n} == "y" ]]; then
pubkey=$(ssh-keyscan -p "$ssh_port" -t ed25519 "$ssh_host" 2>/dev/null || {
echo "ERROR: failed to retrieve host public key for ${ssh_connection}" >&2
exit 1
})
pubkey=$(echo "$pubkey" | sed -e 's/^[^ ]* //' | base64 -w0)
fi
if [[ ${phases[disko]-} == 1 ]]; then
runDisko "$disko_script"
fi