Skip to content

Commit

Permalink
Update eve-recovery-files loop dev regex
Browse files Browse the repository at this point in the history
Change mapper device regex so that it recognises loop devices loop9+. If re-running the script on an already used system which has snaps etc. installed taking up loop devices, the device number might be higher than 9, causing the script to fail.
  • Loading branch information
flantel committed May 25, 2019
1 parent 1aa0c15 commit a056ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/eve-recovery-files/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
set_fact:
mapper_device: "{{ kpartx_output.stdout | regex_search(regexp, '\\1') | first }}"
vars:
regexp: '(loop[0-9]p3)'
regexp: '(loop[0-9]+p3)'

- debug:
msg: "mapper device: {{ mapper_device }}"
Expand Down

0 comments on commit a056ce2

Please sign in to comment.