From 916a2e0e7b446e59947a4877687333076d5b4832 Mon Sep 17 00:00:00 2001 From: "Aaron D. Lee" Date: Sat, 3 Jan 2026 21:15:41 -0500 Subject: [PATCH] Fix SSH key regeneration service hanging on boot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove ExecStartPost that was calling systemctl restart ssh, which caused a deadlock. The Before=ssh.service ordering ensures keys are generated before ssh starts - no restart needed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- rpi/sanitize-for-image.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/rpi/sanitize-for-image.sh b/rpi/sanitize-for-image.sh index 832bc73..4f34c22 100755 --- a/rpi/sanitize-for-image.sh +++ b/rpi/sanitize-for-image.sh @@ -126,7 +126,6 @@ ConditionPathExists=!/etc/ssh/ssh_host_ed25519_key [Service] Type=oneshot ExecStart=/usr/bin/ssh-keygen -A -ExecStartPost=/bin/systemctl restart ssh [Install] WantedBy=multi-user.target