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, 2 insertions, 2 deletions
diff --git a/roles/unmount-all/tasks/main.yml b/roles/unmount-all/tasks/main.yml
index 253ffe9..98d4cdd 100644
--- a/roles/unmount-all/tasks/main.yml
+++ b/roles/unmount-all/tasks/main.yml
@@ -40,9 +40,9 @@
fstype: "{{ vyos_root_fstype }}"
state: absent
-- name: Detach {{ vyos_target_drive }}
+- name: Remove image partitions
become: true
- command: "losetup -d {{ vyos_target_drive }}"
+ command: "kpartx -dv {{ vyos_raw_img }}"
- name: Unmount {{ vyos_cd_squash_root }}
become: true