From 5045b46014caf5fdcd32bb7ba535bce66b4990c1 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 28 Aug 2025 15:14:02 -0400 Subject: [PATCH] Switch to ISO based boot for windows Windows boot loader can be easily confused by a plurality of vfat volumes, coddle it by giving it an ISO image for now. --- confluent_server/confluent/osimage.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/osimage.py b/confluent_server/confluent/osimage.py index b1676f3d..f26eb13b 100644 --- a/confluent_server/confluent/osimage.py +++ b/confluent_server/confluent/osimage.py @@ -94,8 +94,10 @@ def update_boot(profilename): 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) + ['/usr/bin/genisoimage', '-o', + '{0}/boot.img'.format(profiledir), '-udf', '-b', 'dvd/etfsboot.com', + '-no-emul-boot', '-eltorito-alt-boot', '-eltorito-boot', + 'dvd/efisys_noprompt.bin', '{0}/boot'.format(profiledir)], preexec_fn=relax_umask) def update_boot_esxi(profiledir, profile, label): profname = os.path.basename(profiledir)