From ec3fcee7d7f3439bde2aa7cd4960551e17927299 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 20 Aug 2025 20:15:05 -0400 Subject: [PATCH] Implement updateboot for windows profiles --- confluent_server/confluent/osimage.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/confluent_server/confluent/osimage.py b/confluent_server/confluent/osimage.py index 060f8794..1cd7dc11 100644 --- a/confluent_server/confluent/osimage.py +++ b/confluent_server/confluent/osimage.py @@ -88,6 +88,14 @@ def update_boot(profilename): update_boot_linux(profiledir, profile, label) elif ostype == 'esxi': update_boot_esxi(profiledir, profile, label) + elif ostype == 'windows': + update_boot_windows(profiledir, profile, label) + +def update_boot_windows(profiledir, profile, label): + profname = os.path.basename(profiledir) + subprocess.check_call( + ['/opt/confluent/bin/dir2img', '{0}/boot'.format(profiledir), + '{0}/boot.img'.format(profiledir), profname], preexec_fn=relax_umask) def update_boot_esxi(profiledir, profile, label): profname = os.path.basename(profiledir)