From e929a4b0108b6731ee39d9c99f2139f320c5f5bf Mon Sep 17 00:00:00 2001 From: Antynea Date: Sat, 30 May 2026 21:22:41 +0200 Subject: [PATCH] Use print_info for "Detecting snapshots" message The "Detecting snapshots ..." message was still a bare printf and bypassed the logging helpers added in #435. Use print_info so it carries the "grub-btrfs:" prefix; the trailing newline is handled by the helper. --- 41_snapshots-btrfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index d1ded6e..f7d2bd6 100755 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -89,7 +89,7 @@ if ! type btrfs >/dev/null 2>&1; then print_info "btrfs-progs isn't installed"; [ -f "${GRUB_BTRFS_MKCONFIG_LIB:-/usr/share/grub/grub-mkconfig_lib}" ] && . "${GRUB_BTRFS_MKCONFIG_LIB:-/usr/share/grub/grub-mkconfig_lib}" || print_error "grub-mkconfig_lib couldn't be found" [[ "$(btrfs filesystem df / 2>&1)" == *"not a btrfs filesystem"* ]] && { print_info "Root filesystem isn't btrfs"; exit 0; } -printf "Detecting snapshots ...\n" >&2 ; +print_info "Detecting snapshots ..." ## Submenu name distro=$(awk -F "=" '/^NAME=/ {gsub(/"/, "", $2); print $2}' /etc/os-release) # escape '