do not unregister qemu emulator before image creation
keep DEVICE_LOCKFILE to prevent a race condition
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
Change-Id: I5714194ef6b48f80812b2f8b534d83fc27a663e4
try:
fcntl.flock(fp, fcntl.LOCK_UN)
fp.close()
- os.unlink(DEVICE_LOCKFILE)
except:
pass
msger.info('Try to disable selinux')
runner.show(["/usr/sbin/setenforce", "0"])
- # unregister it if it has been registered and is a dynamically-linked executable
- if os.path.exists(node):
- qemu_unregister_string = "-1\n"
- with open(node, "w") as fd:
- fd.write(qemu_unregister_string)
-
# register qemu emulator for interpreting other arch executable file
if not os.path.exists(node):
if arch == "aarch64":