diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-02-07 11:29:57 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-02-07 12:53:39 +0000 |
commit | 46e7e99c2b56766a3e858c7cb1584937a748a572 (patch) | |
tree | c14b5a937216a401f6c5c0f56d18628dfb452279 | |
parent | 4a2578e39c8074bf9fb75870a045da88ffd6e299 (diff) | |
download | morph-46e7e99c2b56766a3e858c7cb1584937a748a572.tar.gz |
Let mount choose loop device
Suggested-By: Richard Maw
-rwxr-xr-x | morphlib/writeexts.py | 3 |
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): |