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

Implement updateboot for windows profiles

This commit is contained in:
Jarrod Johnson
2025-08-20 20:15:05 -04:00
parent b2b2b5710b
commit ec3fcee7d7

View File

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