Raise an exception if isohybrid cannot be run on x86
This commit is contained in:
parent
888f33c9d1
commit
43be129a48
@ -569,11 +569,14 @@ class X86(object):
|
||||
stdout=subprocess.PIPE)
|
||||
p.wait()
|
||||
|
||||
if os.path.exists(ISOHYBRID):
|
||||
try:
|
||||
# run isohybrid
|
||||
cmd = [ISOHYBRID, boot_fpath]
|
||||
p = subprocess.Popen(cmd, stdin=subprocess.PIPE,
|
||||
stdout=subprocess.PIPE)
|
||||
except OSError as e:
|
||||
raise Exception("cannot run isohybrid: %s" % e)
|
||||
else:
|
||||
p.wait()
|
||||
|
||||
# run implantisomd5
|
||||
|
Loading…
Reference in New Issue
Block a user