summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGyeoungmin Kim <g5.kim@samsung.com>2014-12-03 14:43:52 +0900
committeradmin <yuhuan.yang@samsung.com>2016-02-04 18:31:23 +0800
commite92f8fecb5e3468b79f3f0b2afb51d69052f5024 (patch)
tree2d3d39994a8fdea67a657b271cd9deaae045e370
parent06fc0fe3d62494e09d97ba5215ca1dcd37d1c659 (diff)
downloadmic-e92f8fecb5e3468b79f3f0b2afb51d69052f5024.tar.gz
mic-e92f8fecb5e3468b79f3f0b2afb51d69052f5024.tar.bz2
mic-e92f8fecb5e3468b79f3f0b2afb51d69052f5024.zip
Mount option is modified to be more general
Supporting for using command line tools as toybox, busybox. Fixes: #2359 Change-Id: I3b5935609d83601900f03c978e48e95490559143 Signed-off-by: Gyeoungmin Kim <g5.kim@samsung.com>
-rw-r--r--mic/utils/fs_related.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mic/utils/fs_related.py b/mic/utils/fs_related.py
index 2afa25c..dd50aee 100644
--- a/mic/utils/fs_related.py
+++ b/mic/utils/fs_related.py
@@ -129,10 +129,10 @@ class BindChrootMount:
return
if self.mount_option:
- cmdline = [self.mountcmd, "--bind", "-o", "%s" % \
+ cmdline = [self.mountcmd, "-o" ,"bind", "-o", "%s" % \
self.mount_option, self.src, self.dest]
else:
- cmdline = [self.mountcmd, "--bind", self.src, self.dest]
+ cmdline = [self.mountcmd, "-o" ,"bind", self.src, self.dest]
rc, errout = runner.runtool(cmdline, catch=2)
if rc != 0:
raise MountError("Bind-mounting '%s' to '%s' failed: %s" %