Attempt to fix ignore specific path (#102)

* Attempt to fix ignore specific path

Attempt to fix ignore specific path #100

* Update config
This commit is contained in:
Antynea
2020-09-05 12:24:46 +02:00
committed by GitHub
parent 9cb57dab40
commit 44ee10f5ef
2 changed files with 2 additions and 1 deletions

View File

@@ -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

2
config
View File

@@ -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"