From b34672721949d71538691937c1746d3eac9c0e53 Mon Sep 17 00:00:00 2001 From: Antynea Date: Thu, 23 Sep 2021 15:28:28 +0200 Subject: [PATCH] Deletes unused code * Deletes unused code: * Limit generation of menuentries if exceeds 250 has never been used. Uses "GRUB_BTRFS_LIMIT" (default 50) instead --- 41_snapshots-btrfs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index 879df60..6e31973 100755 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -506,8 +506,6 @@ boot_bounded() ### Limit snapshots found during run "grub-mkconfig" count_limit_snap=$((1+$count_limit_snap)) [[ $count_limit_snap -ge $limit_snap_show ]] && break; - # Limit generation of menuentries if exceeds 250 - # [[ $count_warning_menuentries -ge 250 ]] && break; done IFS=$oldIFS } @@ -554,8 +552,6 @@ boot_separate() # Limit snapshots found during run "grub-mkconfig" count_limit_snap=$((1+$count_limit_snap)) [[ $count_limit_snap -ge $limit_snap_show ]] && break; - # Limit generation of menuentries if exceeds 250 - # [[ $count_warning_menuentries -ge 250 ]] && break; done IFS=$oldIFS } @@ -588,7 +584,6 @@ else fi # Show warn, menuentries exceeds 250 entries [[ $count_warning_menuentries -ge 250 ]] && printf "Generated %s total GRUB entries. You might experience issues loading snapshots menu in GRUB.\n" "${count_warning_menuentries}" >&2 ; -# printf "menuentries = $count_warning_menuentries \n" >&2 ; # Show total found snapshots if [[ "${GRUB_BTRFS_SHOW_TOTAL_SNAPSHOTS_FOUND:-"true"}" = "true" && -n "${count_limit_snap}" && "${count_limit_snap}" != "0" ]]; then printf "Found %s snapshot(s)\n" "${count_limit_snap}" >&2 ;