From ca385c659297749b37af13be4fec76c8d68db0b7 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 16 Oct 2014 17:25:37 +0000 Subject: Don't loop mount when mounting a device --- writeexts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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): -- cgit v1.2.1