From 9c589e83527e10edceceaf558c8dd126d3d0bb93 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 15 Nov 2024 09:19:51 -0500 Subject: [PATCH] Regenerate initrd after install The drivers on target may differ from source, regenerate initramfs to allow for booting --- .../el9-diskless/profiles/default/scripts/post.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/confluent_osdeploy/el9-diskless/profiles/default/scripts/post.sh b/confluent_osdeploy/el9-diskless/profiles/default/scripts/post.sh index 7a7ac01e..cb548bf4 100644 --- a/confluent_osdeploy/el9-diskless/profiles/default/scripts/post.sh +++ b/confluent_osdeploy/el9-diskless/profiles/default/scripts/post.sh @@ -40,6 +40,9 @@ run_remote_parts post.d # Induce execution of remote configuration, e.g. ansible plays in ansible/post.d/ run_remote_config post.d +# rebuild initrd, pick up new drivers if needed +dracut -f /boot/initramfs-$(uname -r).img $(uname -r) + curl -sf -X POST -d 'status: staged' -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $confluent_apikey" https://$confluent_websrv/confluent-api/self/updatestatus kill $logshowpid