2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-09-16 15:18:37 +00:00

Make more windows content executable

Other files use the executable
bit as an indication of whether to run or not.
This commit is contained in:
Jarrod Johnson
2025-08-28 08:08:30 -04:00
parent 9defc47474
commit f321f56109

View File

@@ -668,11 +668,12 @@ def fixup_windows(targpath):
# manifests as following the executable bit
for root, _, files in os.walk(targpath):
for fname in files:
if fname.endswith('.exe'):
fpath = os.path.join(root, fname)
if is_windows_executable(fpath):
st = os.stat(fpath)
os.chmod(fpath, st.st_mode | 0o111)
for ext in ('.exe', '.dll', '.sys', '.mui', '.efi'):
if fname.endswith(ext):
fpath = os.path.join(root, fname)
if is_windows_executable(fpath):
st = os.stat(fpath)
os.chmod(fpath, st.st_mode | 0o111)
def check_coreos(isoinfo):
arch = 'x86_64' # TODO: would check magic of vmlinuz to see which arch