From 2b0fa99a5ad90d8b66803deb9be2ba55051dbc5c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 5 Oct 2021 18:28:33 +0100 Subject: [PATCH] Mark slave interfaces in a bond as optional This stops systemd-wait-online treaing them as required and waiting for them to come up when they may not be connected - the actual bond will still be required but will be up once at least one slave interface is. --- cookbooks/networking/recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 4fbf463f2..8569c731c 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -156,7 +156,7 @@ end netplan["network"]["bonds"].each_value do |bond| bond["interfaces"].each do |interface| - netplan["network"]["ethernets"][interface] ||= { "accept-ra" => false } + netplan["network"]["ethernets"][interface] ||= { "accept-ra" => false, "optional" => true } end end -- 2.43.2