summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sandboxlib/chroot.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sandboxlib/chroot.py b/sandboxlib/chroot.py
index a787c93..9724368 100644
--- a/sandboxlib/chroot.py
+++ b/sandboxlib/chroot.py
@@ -147,7 +147,8 @@ def mount_all(rootfs_path, mount_info_list):
os.makedirs(path)
mount(source, path, mount_type, mount_options)
- mounted.append(path)
+ if not mount_options or 'remount' not in mount_options:
+ mounted.append(path)
yield
finally: