From 4addf6fa89f311d8812298ea6c32f936ed243429 Mon Sep 17 00:00:00 2001 From: Sam & Claude Date: Mon, 22 Jun 2026 09:30:06 +0200 Subject: [PATCH] =?UTF-8?q?build:=20pre-stage=20mother=20SSH=20key=20for?= =?UTF-8?q?=20USB=E2=86=92osa=20connectivity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Copies /home/clawdie/.ssh/osa-mother-2026 (ed25519) from the build host into the ISO at /home/clawdie/.ssh/osa-mother-2026 (0600). Public key is in mother's authorized_keys. Lets the live USB node SSH straight into the mother server without manual key exchange. Skipped silently if the key file doesn't exist on the build host. --- build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.sh b/build.sh index ada363d..0fc22b4 100755 --- a/build.sh +++ b/build.sh @@ -1609,6 +1609,17 @@ EOF cp "${MOUNT_POINT}/home/clawdie/.xinitrc" "${MOUNT_POINT}/home/clawdie/.config/xfce4/xinitrc" cp "${MOUNT_POINT}/home/clawdie/.xinitrc" "${MOUNT_POINT}/etc/skel/.xinitrc" cp "${MOUNT_POINT}/home/clawdie/.xinitrc" "${MOUNT_POINT}/etc/skel/.config/xfce4/xinitrc" + + # Pre-stage mother connectivity key if present on the build host. + # Lets the live USB node SSH into the mother server (osa) without + # manual key exchange. Public key is already in mother authorized_keys. + _mother_key_src="/home/clawdie/.ssh/osa-mother-2026" + if [ -f "${_mother_key_src}" ]; then + mkdir -p "${MOUNT_POINT}/home/clawdie/.ssh" + cp "${_mother_key_src}" "${MOUNT_POINT}/home/clawdie/.ssh/osa-mother-2026" + chmod 0600 "${MOUNT_POINT}/home/clawdie/.ssh/osa-mother-2026" + echo " Staged mother SSH key for USB→mother connectivity." + fi chmod 0755 \ "${MOUNT_POINT}/home/clawdie/.xinitrc" \ "${MOUNT_POINT}/home/clawdie/.config/xfce4/xinitrc" \ -- 2.45.3