From 46e7e99c2b56766a3e858c7cb1584937a748a572 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 7 Feb 2013 11:29:57 +0000 Subject: Let mount choose loop device Suggested-By: Richard Maw --- morphlib/writeexts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'morphlib') 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): -- cgit v1.2.1