summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDohyung Kim <dohyung2.kim@samsung.com>2018-03-27 17:01:43 +0900
committerXiao Jin <jin.xiao@samsung.com>2018-03-29 22:34:31 +0800
commit886f39f0cf6c0f958ef534f53f3f7c8db8f001c7 (patch)
treecdf19ddfbd3c50abf7d63670a502a75088d7130f
parente9f91bbebe66b316ba80b71fdb2be000bbdc68e4 (diff)
downloadmic-886f39f0cf6c0f958ef534f53f3f7c8db8f001c7.tar.gz
mic-886f39f0cf6c0f958ef534f53f3f7c8db8f001c7.tar.bz2
mic-886f39f0cf6c0f958ef534f53f3f7c8db8f001c7.zip
In Tizen, losetup command support '-f' option, not '--find' option
https://review.tizen.org/gerrit/gitweb?p=platform/upstream/util-linux.git;a=blob;f=sys-utils/losetup1.c;h=059832de3a218f854746ef5bdeb1583a98acae19;hb=9a6b29405679d6d7b4cafd19a6fc7bb07ee14938#l1182 Change-Id: I5e54549ec2a742c187ac25d81a4052b18d71a697 Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
-rwxr-xr-xmic/utils/fs_related.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mic/utils/fs_related.py b/mic/utils/fs_related.py
index ce3d214..11f6801 100755
--- a/mic/utils/fs_related.py
+++ b/mic/utils/fs_related.py
@@ -994,7 +994,7 @@ def get_loop_device(losetupcmd, lofile):
clean_loop_devices()
# provide an avaible loop device
- rc, out = runner.runtool([losetupcmd, "--find"])
+ rc, out = runner.runtool([losetupcmd, "-f"])
if rc == 0 and out:
loopdev = out.split()[0]
devinst.register(loopdev)