diff options
Diffstat (limited to 'morphlib/writeexts.py')
-rw-r--r-- | morphlib/writeexts.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/morphlib/writeexts.py b/morphlib/writeexts.py index 4b9e4fcd..31e7a0b6 100644 --- a/morphlib/writeexts.py +++ b/morphlib/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): |