From: Dohyung Kim Date: Tue, 27 Mar 2018 08:01:43 +0000 (+0900) Subject: In Tizen, losetup command support '-f' option, not '--find' option X-Git-Tag: released-tools-18.01.7~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c39ae54ebea21fc43aa776376faad0a8ba8ce2f;p=tools%2Fmic.git 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 --- 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)