Browse Source

Merge pull request #9382 from bysnupy/pr2

Ensure the top level mount point is unmounted before other tasks
OpenShift Merge Robot 6 years ago
parent
commit
4ffd859fd2
1 changed files with 5 additions and 0 deletions
  1. 5 0
      roles/container_runtime/tasks/common/setup_docker_symlink.yml

+ 5 - 0
roles/container_runtime/tasks/common/setup_docker_symlink.yml

@@ -11,6 +11,11 @@
       failed_when:
         - results.rc != 0
 
+    - name: ensure the unmount of top level mount point
+      mount:
+        path: "{{ docker_default_storage_path }}"
+        state: unmounted
+
     - name: "Set the selinux context on {{ docker_alt_storage_path }}"
       command: "semanage fcontext -a -e {{ docker_default_storage_path }} {{ docker_alt_storage_path }}"
       environment: