From 181411e03df1be925d9c537eef4bcdfbd2e1e2d9 Mon Sep 17 00:00:00 2001
From: Simon Delamare <simon.delamare@ens-lyon.fr>
Date: Fri, 20 Aug 2021 11:41:48 +0200
Subject: [PATCH] [lib] kadeploy gen: allow specifying custom kexec script

---
 lib/refrepo/gen/puppet/templates/kadeployg5k.conf.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/refrepo/gen/puppet/templates/kadeployg5k.conf.erb b/lib/refrepo/gen/puppet/templates/kadeployg5k.conf.erb
index dc74097805..6d61921768 100644
--- a/lib/refrepo/gen/puppet/templates/kadeployg5k.conf.erb
+++ b/lib/refrepo/gen/puppet/templates/kadeployg5k.conf.erb
@@ -24,7 +24,7 @@ trusted_deployment:
 <% end %>
 kexec:
   server_precmd: "true"
-  script: /etc/kadeploy3<%= suffix %>/kexec.sh
+  script: /etc/kadeploy3<%= suffix %>/<%= data.fetch('kexec_script', 'kexec.sh') %>
   <% if ! data['partitioning.disable_swap'].nil? %>disable_swap: <%= data['partitioning.disable_swap'] %><% end %>
 timeouts:
   reboot: <%= data['reboot.timeout'] %>
-- 
GitLab