In Tizen, losetup command support '-f' option, not '--find' option
authorDohyung Kim <dohyung2.kim@samsung.com>
Tue, 27 Mar 2018 08:01:43 +0000 (17:01 +0900)
committerXiao Jin <jin.xiao@samsung.com>
Thu, 29 Mar 2018 14:34:31 +0000 (22:34 +0800)
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>
mic/utils/fs_related.py

index ce3d214..11f6801 100755 (executable)
@@ -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)