summaryrefslogtreecommitdiff
path: root/writeexts.py
diff options
context:
space:
mode:
Diffstat (limited to 'writeexts.py')
-rw-r--r--writeexts.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/writeexts.py b/writeexts.py
index 4b9e4fcd..31e7a0b6 100644
--- a/writeexts.py
+++ b/writeexts.py
@@ -246,7 +246,10 @@ class WriteExtension(cliapp.Application):
self.status(msg='Mounting filesystem')
tempdir = tempfile.mkdtemp()
- cliapp.runcmd(['mount', '-o', 'loop', location, tempdir])
+ if self.is_device(location):
+ cliapp.runcmd(['mount', location, tempdir])
+ else:
+ cliapp.runcmd(['mount', '-o', 'loop', location, tempdir])
return tempdir
def unmount(self, mount_point):