Skip to content

Commit

Permalink
Attempt to fix ignore specific path (#102)
Browse files Browse the repository at this point in the history
* Attempt to fix ignore specific path

Attempt to fix ignore specific path #100

* Update config
  • Loading branch information
Antynea authored Sep 5, 2020
1 parent 9cb57da commit 44ee10f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions 41_snapshots-btrfs
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ snapshot_list()

# ignore specific path during run "grub-mkconfig"
if [ ! -z "${ignore_specific_path}" ] ; then
[[ "${snap_path_name}" == "@" ]] && continue 2;
for isp in ${ignore_specific_path[@]} ; do
[[ "${snap_path_name}" == "${isp}" || "${snap_path_name}" == "${isp}"/* ]] && continue 2;
done
Expand Down
2 changes: 1 addition & 1 deletion config
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
# You can combine them
# use : GRUB_BTRFS_IGNORE_SPECIFIC_PATH=("@var/lib/docker" "var/lib/docker")
# Default:
GRUB_BTRFS_IGNORE_SPECIFIC_PATH=("@" "var/lib/docker" "@var/lib/docker")
GRUB_BTRFS_IGNORE_SPECIFIC_PATH=("var/lib/docker" "@var/lib/docker")

# Snapper's config name to use
# Default: "root"
Expand Down

0 comments on commit 44ee10f

Please sign in to comment.