diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index 4af99d4..fec962e 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -29,7 +29,9 @@ if [ "${ENABLE_SSH}" == "1" ]; then else systemctl disable ssh fi -systemctl enable regenerate_ssh_host_keys +if [[ "${ARCH}" == "arm64" || "${ARCH}" == "armhf" ]]; then + systemctl enable regenerate_ssh_host_keys +fi EOF if [ "${USE_QEMU}" = "1" ]; then