diff options
author | Dohyung Kim <dohyung2.kim@samsung.com> | 2017-05-16 15:39:02 +0900 |
---|---|---|
committer | yuhuan.yang <yuhuan.yang@samsung.com> | 2018-01-29 14:39:34 +0800 |
commit | 9619ad84e8ce0e70d882c859c97b86cc9b3233f8 (patch) | |
tree | f6d16d1ca8c8ed20ef0e604a98446a904b959bf1 | |
parent | f79af1e7433f6ce6995e791520ac4c7fdc79a456 (diff) | |
download | mic-9619ad84e8ce0e70d882c859c97b86cc9b3233f8.tar.gz mic-9619ad84e8ce0e70d882c859c97b86cc9b3233f8.tar.bz2 mic-9619ad84e8ce0e70d882c859c97b86cc9b3233f8.zip |
support multiple mic execution at same time
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
-rw-r--r-- | mic/utils/fs_related.py | 1 | ||||
-rwxr-xr-x | mic/utils/misc.py | 6 |
2 files changed, 0 insertions, 7 deletions
diff --git a/mic/utils/fs_related.py b/mic/utils/fs_related.py index 54f68da..11ff5af 100644 --- a/mic/utils/fs_related.py +++ b/mic/utils/fs_related.py @@ -990,7 +990,6 @@ def get_loop_device(losetupcmd, lofile): try: fcntl.flock(fp, fcntl.LOCK_UN) fp.close() - os.unlink(DEVICE_LOCKFILE) except: pass diff --git a/mic/utils/misc.py b/mic/utils/misc.py index 4716b24..873ebbe 100755 --- a/mic/utils/misc.py +++ b/mic/utils/misc.py @@ -946,12 +946,6 @@ def setup_qemu_emulator(rootdir, arch): 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": |