summaryrefslogtreecommitdiff
path: root/morphlib/writeexts.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-02-07 11:29:57 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-02-07 12:53:39 +0000
commit46e7e99c2b56766a3e858c7cb1584937a748a572 (patch)
treec14b5a937216a401f6c5c0f56d18628dfb452279 /morphlib/writeexts.py
parent4a2578e39c8074bf9fb75870a045da88ffd6e299 (diff)
downloadmorph-46e7e99c2b56766a3e858c7cb1584937a748a572.tar.gz
Let mount choose loop device
Suggested-By: Richard Maw
Diffstat (limited to 'morphlib/writeexts.py')
-rwxr-xr-xmorphlib/writeexts.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/morphlib/writeexts.py b/morphlib/writeexts.py
index 676a9d22..a407c059 100755
--- a/morphlib/writeexts.py
+++ b/morphlib/writeexts.py
@@ -91,8 +91,7 @@ class WriteExtension(cliapp.Application):
self.status(msg='Mounting filesystem')
tempdir = tempfile.mkdtemp()
- # FIXME: This hardcodes the loop device.
- cliapp.runcmd(['mount', '-o', 'loop=loop0', location, tempdir])
+ cliapp.runcmd(['mount', '-o', 'loop', location, tempdir])
return tempdir
def unmount(self, mount_point):