]> git.proxmox.com Git - ifupdown2.git/commit
fix #5009: avoid waiting for stdout eof of /etc/network/ scripts
authorFriedrich Weber <f.weber@proxmox.com>
Tue, 19 Dec 2023 09:22:27 +0000 (10:22 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 20 Dec 2023 13:14:17 +0000 (14:14 +0100)
commit1997a5a6d7237815d902611b0f22010f6d133562
tree937f8e98949d272a3ab67a40ac1d4a9530adbfc0
parente6835fd11d94148db9d6fc93a19e6bdb45915e29
fix #5009: avoid waiting for stdout eof of /etc/network/ scripts

Previously, PVE (7 and 8) hosts would hang at boot if both ntpsec and
ntpsec-ntpdate are installed. The root cause for the hang is an
unfortunate interaction between ntpsec, ntpsec-ntpdate and the PVE
ifupdown2 package. The hang happens because ntpsec-ntpdate installs a
hook /etc/network/if-up.d/ntpsec-ntpdate that blocks until networking
is available if ntpsec is installed. Previously, ifupdown2 would wait
for the hook to terminate, so networking would never become available,
resulting in a deadlock. See the bug report [0] for more information.

With this patch, ifupdown2 runs the hook in the background and does
not wait for it to terminate, thus resolving the deadlock.

This patch was already applied upstream [1]. Backport it to make it
available before the next upstream release.

[0] https://bugzilla.proxmox.com/show_bug.cgi?id=5009
[1] https://github.com/CumulusNetworks/ifupdown2/pull/274

Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
debian/patches/series
debian/patches/upstream/0001-scheduler-avoid-waiting-for-stdout-eof-of-etc-networ.patch [new file with mode: 0644]