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

Conversation

yizhao1
Copy link
Contributor

@yizhao1 yizhao1 commented Nov 25, 2021

…mage"

This reverts commit 5fcb2f0.

$cmdpath is an important grub environment variable. Remove it will cause
the boot failure.

Signed-off-by: Yi Zhao yi.zhao@windriver.com

…mage"

This reverts commit 5fcb2f0.

$cmdpath is an important grub environment variable. Remove it will cause
the boot failure.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
@@ -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.

@yizhao1
Copy link
Contributor Author

yizhao1 commented Nov 25, 2021 via email

@jiazhang0
Copy link
Owner

@yizhao1 Is there any feedback about this?

@phatina
Copy link
Contributor

phatina commented Mar 17, 2022

…mage"

This reverts commit 5fcb2f0.

$cmdpath is an important grub environment variable. Remove it will cause the boot failure.

Signed-off-by: Yi Zhao yi.zhao@windriver.com

With this search.file (\$cmdpath)${GRUB_PREFIX_DIR}/grub.cfg root, I observed boot device duplicity in this path. I could not boot my board in this configuration. Will get to it soon to provide you with full logs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants