Skip to content

Commit

Permalink
feat/configure_snapraid: patch snapraid-btrfs to work with new vers…
Browse files Browse the repository at this point in the history
  • Loading branch information
tigattack committed Oct 17, 2024
1 parent a5d7222 commit 1cc4ca9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/configure_snapraid/tasks/install_snapraid-btrfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,13 @@
- name: Display snapraid-btrfs output
ansible.builtin.debug:
var: snapraid_btrfs_output.stdout_lines

# TODO: Remove this once the following PR is merged https://github.com/automorphism88/snapraid-btrfs/pull/34
- name: Patch snapraid-btrfs
ansible.builtin.lineinfile:
path: /usr/local/bin/snapraid-btrfs
regexp: >-
^(\s{8})sed -e '/\^SUBVOLUME /!d' -e 's/\^SUBVOLUME\[ ]\*\| //'\)\"$
line: >-
\1sed -e '/^SUBVOLUME /!d' -e 's/^SUBVOLUME[ ]*[|│] //')"
backrefs: true

0 comments on commit 1cc4ca9

Please sign in to comment.