summaryrefslogtreecommitdiff
path: root/roles/unmount-all/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/unmount-all/tasks/main.yml')
-rw-r--r--roles/unmount-all/tasks/main.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/unmount-all/tasks/main.yml b/roles/unmount-all/tasks/main.yml
index 1ff6daa..e097b2b 100644
--- a/roles/unmount-all/tasks/main.yml
+++ b/roles/unmount-all/tasks/main.yml
@@ -58,6 +58,10 @@
fstype: "{{ vyos_root_fstype }}"
state: absent
+- name: Detach {{ vyos_target_drive }}
+ become: true
+ command: "losetup -d {{ vyos_target_drive }}"
+
- name: Unmount {{ vyos_cd_squash_root }}
become: true
mount: