Skip to content

Commit

Permalink
Update grub-btrfsd (#289)
Browse files Browse the repository at this point in the history
fix grub.cfg path in grub submenu creation
  • Loading branch information
bkmo authored Jul 26, 2023
1 parent ade5a91 commit 490720a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grub-btrfsd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 490720a

Please sign in to comment.