V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m49s
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:
@@ -39,15 +39,22 @@ installation_ssh() {
|
|||||||
chroot_exec "${TARGET}" apt-get install -y --no-install-recommends --no-install-suggests ssh
|
chroot_exec "${TARGET}" apt-get install -y --no-install-recommends --no-install-suggests ssh
|
||||||
|
|
||||||
mkdir -p "${TARGET}/etc/systemd/system/ssh.service.d"
|
mkdir -p "${TARGET}/etc/systemd/system/ssh.service.d"
|
||||||
|
|
||||||
|
# shellcheck disable=SC2312
|
||||||
cat << EOF >> "${TARGET}/etc/systemd/system/ssh.service.d/override.conf"
|
cat << EOF >> "${TARGET}/etc/systemd/system/ssh.service.d/override.conf"
|
||||||
[Unit]
|
[Unit]
|
||||||
Wants=ifup@${VAR_FINAL_NIC}.service network-online.target
|
Wants=network-online.target
|
||||||
After=ifup@{VAR_FINAL_NIC}.service network-online.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[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
|
Restart=on-failure
|
||||||
RestartSec=3s
|
RestartSec=3s
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
install -D -m 0644 -o root -g root "${VAR_SETUP_PATH}/includes/target/etc/banner" "${TARGET}/etc/"
|
install -D -m 0644 -o root -g root "${VAR_SETUP_PATH}/includes/target/etc/banner" "${TARGET}/etc/"
|
||||||
|
|||||||
Reference in New Issue
Block a user