From f0117f5b5f9238c3d9638a175d4f1af2ceb453b8 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 1 Jun 2024 16:28:00 +0200 Subject: [PATCH] fix local image --- usr/lib/archboot/container.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr/lib/archboot/container.sh b/usr/lib/archboot/container.sh index 69dfce22e..d2e8830c0 100644 --- a/usr/lib/archboot/container.sh +++ b/usr/lib/archboot/container.sh @@ -135,8 +135,11 @@ _ssh_keys() { echo "Using custom OpenSSH Key..." cp /etc/archboot/ssh/archboot-key.pub "${1}"/etc/archboot/ssh/ else - echo "Generating new Archboot OpenSSH Key..." - ssh-keygen -C Archboot -f "${1}"/etc/archboot/ssh/archboot-key -N 'Archboot' -q + # don't run on local image + if ! [[ -f "${_LOCAL_DB}" ]]; then + echo "Generating new Archboot OpenSSH Key..." + ssh-keygen -C Archboot -f "${1}"/etc/archboot/ssh/archboot-key -N 'Archboot' -q + fi fi }