summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-04-01 13:13:21 +0000
committerMorph (on behalf of Adam Coldrick) <adam.coldrick@codethink.co.uk>2015-04-01 13:13:21 +0000
commit3167ced4844c9602e88289607d1c2cc2ecbd5d95 (patch)
tree1348aee0333db97aa5e7c6fd6e2a7fcc5b463471
parent5500ef16d83b569cc11d4f4e7e0c26a354d0f382 (diff)
downloadmorph-3167ced4844c9602e88289607d1c2cc2ecbd5d95.tar.gz
Morph build ec57f1c091984187ac6edb767880bea8
System branch: master
-rw-r--r--morphlib/fsutils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/morphlib/fsutils.py b/morphlib/fsutils.py
index 400ff7d8..84bae8cb 100644
--- a/morphlib/fsutils.py
+++ b/morphlib/fsutils.py
@@ -65,14 +65,13 @@ def overlay_mount(runcmd, partition, mount_point,
options = '-olowerdir=%s,upperdir=%s,workdir=%s' % \
(lowerdir, upperdir, workdir)
mount(runcmd, partition, mount_point, 'overlay', options)
- elif method == 'unionfs':
+ elif method == 'unionfs-fuse':
if not os.path.exists(mount_point):
os.mkdir(mount_point)
dir_string = '%s=RW:%s=RO' % (upperdir, lowerdir)
runcmd(['unionfs', '-o', 'cow', dir_string, mount_point])
else:
- raise cliapp.AppException('Union filesystem %s not supported' %
- method)
+ raise Exception('Union filesystem %s not supported' % method)
def unmount(runcmd, mount_point): # pragma: no cover