-
Notifications
You must be signed in to change notification settings - Fork 73
Revert "grub-efi: Remove $cmdpath from configuration for for grub-mki… #233
base: master
Are you sure you want to change the base?
Conversation
…mage" This reverts commit 5fcb2f0. $cmdpath is an important grub environment variable. Remove it will cause the boot failure. Signed-off-by: Yi Zhao <[email protected]>
@@ -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 |
There was a problem hiding this comment.
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.
@yizhao1 Is there any feedback about this? |
With this |
…mage"
This reverts commit 5fcb2f0.
$cmdpath is an important grub environment variable. Remove it will cause
the boot failure.
Signed-off-by: Yi Zhao [email protected]