V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m49s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-10-14 13:39:51 +01:00
parent 75ff61e256
commit f8b13063a8

View File

@@ -39,15 +39,22 @@ installation_ssh() {
chroot_exec "${TARGET}" apt-get install -y --no-install-recommends --no-install-suggests ssh
mkdir -p "${TARGET}/etc/systemd/system/ssh.service.d"
# shellcheck disable=SC2312
cat << EOF >> "${TARGET}/etc/systemd/system/ssh.service.d/override.conf"
[Unit]
Wants=ifup@${VAR_FINAL_NIC}.service network-online.target
After=ifup@{VAR_FINAL_NIC}.service network-online.target
Wants=network-online.target
After=network-online.target
[Service]
# Wait until v4 *and* v6 global addresses exist on ens3
ExecStartPre=/bin/sh -c 'for i in $(seq 1 60); do \
ip -4 addr show dev ens3 scope global | grep -q "inet " && \
ip -6 addr show dev ens3 scope global | grep -q "inet6 " && exit 0; \
sleep 1; \
done; exit 1'
Restart=on-failure
RestartSec=3s
EOF
install -D -m 0644 -o root -g root "${VAR_SETUP_PATH}/includes/target/etc/banner" "${TARGET}/etc/"