2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-11 02:22:31 +00:00

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.
This commit is contained in:
Jarrod Johnson
2025-08-28 15:14:02 -04:00
parent 5905510a32
commit 5045b46014

View File

@@ -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)