Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Revert "grub-efi: Remove $cmdpath from configuration for for grub-mki… #233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ EOF
> ${WORKDIR}/cfg
fi
cat<<EOF>>${WORKDIR}/cfg
search.file ${GRUB_PREFIX_DIR}/grub.cfg root
search.file (\$cmdpath)${GRUB_PREFIX_DIR}/grub.cfg root
Copy link
Owner

@jiazhang0 jiazhang0 Nov 25, 2021

Choose a reason for hiding this comment

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

Please help to fix another issue here:

search.file (\$cmdpath)${GRUB_PREFIX_DIR}/grub.cfg

According to https://www.gnu.org/software/grub/manual/grub/html_node/search.html, the default variable used to store the found device is 'root'. In addition, the syntax of search.file command doesn't support the second parameter.

set prefix=(\$root)${GRUB_PREFIX_DIR}
EOF
}
Expand Down