2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-11-20 01:12:25 +00:00

Also check if shim can be downloaded using tftp

This commit is contained in:
Jarrod Johnson
2026-11-02 11:39:25 -05:00
parent 293a12497f
commit 734ea9811a
+1
View File
@@ -51,6 +51,7 @@ def fprint(txt):
def tftp_works():
try:
subprocess.check_call(['curl', '--connect-timeout', '2', '-sf', 'tftp://localhost/confluent/x86_64/ipxe.efi', '-o', '/dev/null'])
subprocess.check_call(['curl', '--connect-timeout', '2', '-sf', 'tftp://localhost/confluent/x86_64/ipxe-shim.efi', '-o', '/dev/null'])
return True
except Exception:
return False