From d36979544014229bbb0d89bccb69314a92a8b62f Mon Sep 17 00:00:00 2001 From: Marek Skrobacki Date: Wed, 13 Nov 2024 14:05:15 +0000 Subject: [PATCH] IPA: stop waiting for all interfaces to be online This changes behavior of systemd-networkd-wait-online so that it does not wait default 120s for all of interfaces to become online, which in reality never comes effectively delaying boot for 2 minutes. Instead, we are satisfied with just one interface reaching the IPv4 routable state. --- ironic-images/ipa-debian-bookworm.yaml | 1 + .../systemd-networkd-wait-online.service.d/justone.conf | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 ironic-images/static/etc/systemd/system/systemd-networkd-wait-online.service.d/justone.conf diff --git a/ironic-images/ipa-debian-bookworm.yaml b/ironic-images/ipa-debian-bookworm.yaml index ba9ab7b94..e9cd75609 100644 --- a/ironic-images/ipa-debian-bookworm.yaml +++ b/ironic-images/ipa-debian-bookworm.yaml @@ -6,3 +6,4 @@ - journal-to-console - package-installs - undercloud-ipa + - install-static diff --git a/ironic-images/static/etc/systemd/system/systemd-networkd-wait-online.service.d/justone.conf b/ironic-images/static/etc/systemd/system/systemd-networkd-wait-online.service.d/justone.conf new file mode 100644 index 000000000..5b39e9881 --- /dev/null +++ b/ironic-images/static/etc/systemd/system/systemd-networkd-wait-online.service.d/justone.conf @@ -0,0 +1,4 @@ +[Service] +ExecStart= +# Wait for at least one interface to become online and have IPv4 address +ExecStart=/lib/systemd/systemd-networkd-wait-online --any -4 --timeout 60