Skip to content

Commit

Permalink
use xfs_info on mountpoint instead of lvm
Browse files Browse the repository at this point in the history
  • Loading branch information
Tcharl committed Apr 21, 2020
1 parent 45315cf commit 4a1177e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/create_fs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
- name: lvm | check already converted
# at least xfs is executed twice if the partition has changed in the meantime
# then it tries to recreate the fs on the mounted fs which indeed fails...
shell: "xfs_info /dev/{{ vg.vgname }}/{{ lv.lvname }} | grep -c 'ftype=1'"
shell: "xfs_info {{ lv.mntp }} | grep -c 'ftype=1'"
become: yes
loop: "{{ vg.lvnames }}"
loop_control:
Expand Down

0 comments on commit 4a1177e

Please sign in to comment.