From: Lennart Poettering Date: Fri, 13 Jun 2025 16:21:11 +0000 (+0200) Subject: units: systems might take a while to boot X-Git-Tag: v258-rc1~79^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3405b84d8c4c145e2d034bfe954da728daf2d589;p=thirdparty%2Fsystemd.git units: systems might take a while to boot vmspawn systems might take quite a while to boot in particular if they go through uefi and wait for a network lease. Hence let's increase the start timeout to 2min (from 45s). We'll do that for both nspawn and vmspawn, even though the UEFI thing certainly doesn't apply there (but the DHCP thing still does). --- diff --git a/units/systemd-nspawn@.service.in b/units/systemd-nspawn@.service.in index c1426e673bd..d540a071a48 100644 --- a/units/systemd-nspawn@.service.in +++ b/units/systemd-nspawn@.service.in @@ -29,6 +29,7 @@ Delegate=yes DelegateSubgroup=supervisor CoredumpReceive=yes TasksMax=16384 +TimeoutSec=2min {{SERVICE_WATCHDOG}} {# Enforce a strict device policy, similar to the one nspawn configures (in diff --git a/units/systemd-vmspawn@.service.in b/units/systemd-vmspawn@.service.in index 454a03e98b2..6ae0088048f 100644 --- a/units/systemd-vmspawn@.service.in +++ b/units/systemd-vmspawn@.service.in @@ -21,6 +21,7 @@ ExecStart=systemd-vmspawn --quiet --register=yes --keep-unit --network-tap --mac KillMode=mixed Type=notify Slice=machine.slice +TimeoutSec=2min {{SERVICE_WATCHDOG}} {# Enforce a strict device policy. Make sure to keep these policies in sync if you change them! #} diff --git a/units/user/systemd-nspawn@.service.in b/units/user/systemd-nspawn@.service.in index 90fdc0cb486..4f5cf412dfc 100644 --- a/units/user/systemd-nspawn@.service.in +++ b/units/user/systemd-nspawn@.service.in @@ -25,6 +25,7 @@ Delegate=yes DelegateSubgroup=supervisor CoredumpReceive=yes TasksMax=16384 +TimeoutSec=2min {{SERVICE_WATCHDOG}} [Install] diff --git a/units/user/systemd-vmspawn@.service.in b/units/user/systemd-vmspawn@.service.in index aeea839f8c4..bfb321f2bfe 100644 --- a/units/user/systemd-vmspawn@.service.in +++ b/units/user/systemd-vmspawn@.service.in @@ -18,6 +18,7 @@ ExecStart=systemd-vmspawn --quiet --keep-unit --register=yes --network-tap --mac KillMode=mixed Type=notify Slice=machine.slice +TimeoutSec=2min {{SERVICE_WATCHDOG}} [Install]