From 27335ffbaf5943e96d6b4e0822d5d856f99d428c Mon Sep 17 00:00:00 2001 From: Antynea Date: Mon, 9 Dec 2019 22:40:33 +0100 Subject: [PATCH] Fixed incorrect path to the grub-btrfs.cfg file in Grub menu (#79) Fix #72 The submenu generated by "grub-btrfs" doesn't load in the "GRUB menu." Sometimes the Grub prefix and root variable don't match. This ensures that the prefix variable is used to load the grub-btrfs.cfg file. See How to specify files and Special environment variables : root and Special environment variables : prefix --- 41_snapshots-btrfs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/41_snapshots-btrfs b/41_snapshots-btrfs index ce840a7..5e41018 100755 --- a/41_snapshots-btrfs +++ b/41_snapshots-btrfs @@ -549,8 +549,7 @@ root_grub="$(make_system_path_relative_to_its_root /boot/$grub_directory)" # Make a submenu in GRUB (grub.cfg) cat << EOF submenu '${submenuname}' { - search -f --set=root --no-floppy /grub/grub-btrfs.cfg - configfile "${root_grub}/grub-btrfs.cfg" + configfile "\${prefix}/grub-btrfs.cfg" } EOF printf "###### - Grub-btrfs: Snapshot detection ended - ######\n" >&2 ;