From 25c1449f34a162a7fef1732f723e79005a3d9331 Mon Sep 17 00:00:00 2001 From: Atanas Dinov Date: Thu, 18 Jan 2024 11:25:53 +0200 Subject: [PATCH] Set a priority to network configuration script Signed-off-by: Atanas Dinov --- pkg/combustion/network.go | 6 +++--- ...configure-network.sh.tpl => 03-configure-network.sh.tpl} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename pkg/combustion/templates/{configure-network.sh.tpl => 03-configure-network.sh.tpl} (100%) diff --git a/pkg/combustion/network.go b/pkg/combustion/network.go index 6af633f1..3865f756 100644 --- a/pkg/combustion/network.go +++ b/pkg/combustion/network.go @@ -19,10 +19,10 @@ const ( // Used for both input component source and // output configurations subdirectory under combustion. networkConfigDir = "network" - networkConfigScriptName = "configure-network.sh" + networkConfigScriptName = "03-configure-network.sh" ) -//go:embed templates/configure-network.sh.tpl +//go:embed templates/03-configure-network.sh.tpl var configureNetworkScript string // Configures the network component if enabled. @@ -45,7 +45,7 @@ var configureNetworkScript string // │ │ └── eth1.nmconnection // │ └── host_config.yaml // ├── nmc -// └── configure-network.sh +// └── 03-configure-network.sh func configureNetwork(ctx *image.Context) ([]string, error) { zap.S().Info("Configuring network component...") diff --git a/pkg/combustion/templates/configure-network.sh.tpl b/pkg/combustion/templates/03-configure-network.sh.tpl similarity index 100% rename from pkg/combustion/templates/configure-network.sh.tpl rename to pkg/combustion/templates/03-configure-network.sh.tpl