diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-20 14:43:25 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-04-20 14:43:25 +0100 |
commit | 5dcd254f4bb56fca6f1e66dabfe9797293556c29 (patch) | |
tree | a2dfcfb90d213bcb2b7b3618beea337ac92acfc1 /morphlib/fsutils.py | |
parent | d7d4090572d8fc3c0d83c1eeef0301f051855526 (diff) | |
download | morph-5dcd254f4bb56fca6f1e66dabfe9797293556c29.tar.gz |
Only create mount point if it is missing
Diffstat (limited to 'morphlib/fsutils.py')
-rw-r--r-- | morphlib/fsutils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/fsutils.py b/morphlib/fsutils.py index bfc509b5..0a773ed5 100644 --- a/morphlib/fsutils.py +++ b/morphlib/fsutils.py @@ -59,7 +59,8 @@ def create_fs(ex, partition): '-b', '4294967296', partition]) def mount(ex, partition, mount_point): - os.mkdir(mount_point) + if not os.path.exists(mount_point): + os.mkdir(mount_point) ex.runv(['mount', partition, mount_point]) def unmount(ex, mount_point): |