summaryrefslogtreecommitdiff
path: root/roles/setup-root-partition/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/setup-root-partition/tasks/main.yml')
-rw-r--r--roles/setup-root-partition/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/setup-root-partition/tasks/main.yml b/roles/setup-root-partition/tasks/main.yml
index 5ba9cd8..1f6df8d 100644
--- a/roles/setup-root-partition/tasks/main.yml
+++ b/roles/setup-root-partition/tasks/main.yml
@@ -14,7 +14,7 @@
- name: Find the loop device that was used, map to mapper
become: true
- shell: "losetup | grep vyos_raw_image.img | head -n1 | awk '{print $1}' | sed 's/dev/dev\\/mapper/g'"
+ shell: "losetup | grep {{ vyos_raw_img }} | head -n1 | awk '{print $1}' | sed 's/dev/dev\\/mapper/g'"
register: result
- name: Set vyos_target_drive.