Skip to content

Commit

Permalink
Fixed incorrect path to the grub-btrfs.cfg file in Grub menu (#79)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Antynea authored Dec 9, 2019
1 parent 6cd1303 commit 27335ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 41_snapshots-btrfs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down

1 comment on commit 27335ff

@ernie-cordell
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a question: Is this the cause of the nuisance of discovering other bootable partitions and identifying them as root?

Please sign in to comment.