From 490720a13ccf9e0fab2828860da9628ed9f57b66 Mon Sep 17 00:00:00 2001 From: Brian Morison <777373+bkmo@users.noreply.github.com> Date: Wed, 26 Jul 2023 13:18:10 -0600 Subject: [PATCH] Update grub-btrfsd (#289) fix grub.cfg path in grub submenu creation --- grub-btrfsd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-btrfsd b/grub-btrfsd index d145ec9..df7abef 100755 --- a/grub-btrfsd +++ b/grub-btrfsd @@ -206,7 +206,7 @@ setup() { create_grub_menu() { # create the grub submenu of the whole grub menu, depending on wether the submenu already exists # and gives feedback if it worked - if grep "snapshots-btrfs" "{grub_directory}/grub.cfg"; then + if grep "snapshots-btrfs" "${GRUB_BTRFS_GRUB_DIRNAME:-/boot/grub}"/grub.cfg; then if /etc/grub.d/41_snapshots-btrfs; then log "Grub submenu recreated" "${GREEN}" else