diff --git a/installsystems/tools.py b/installsystems/tools.py index 00ea201ab70a3887dfd3f2dc5af9eb1c54dd7a3d..1e7d5cb8cfb7485e8fbcb5d98c20a7c86c79438f 100644 --- a/installsystems/tools.py +++ b/installsystems/tools.py @@ -365,7 +365,9 @@ def prepare_chroot(path, mount=True): for mp in mps: origin = "/%s" % mp target = os.path.join(path, mp) - if os.path.ismount(origin) and os.path.isdir(target): + if os.path.ismount(target): + warn("%s is already a mountpoint, skipped" % target) + elif os.path.ismount(origin) and os.path.isdir(target): arrow("%s -> %s" % (origin, target), 1) try: check_call(["mount", "--bind", origin, target], close_fds=True)