Skip to content
This repository was 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
yizhao1 wants to merge 1 commit into
jiazhang0:masterfrom
yizhao1:fix
Open

Revert "grub-efi: Remove $cmdpath from configuration for for grub-mki…#233
yizhao1 wants to merge 1 commit into
jiazhang0:masterfrom
yizhao1:fix

Conversation

@yizhao1
Copy link
Copy Markdown
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>
@yizhao1 yizhao1 requested a review from jiazhang0 as a code owner November 25, 2021 09:05
fi
cat<<EOF>>${WORKDIR}/cfg
search.file ${GRUB_PREFIX_DIR}/grub.cfg root
search.file (\$cmdpath)${GRUB_PREFIX_DIR}/grub.cfg root
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

yizhao1 commented Nov 25, 2021 via email

@jiazhang0
Copy link
Copy Markdown
Owner

@yizhao1 Is there any feedback about this?

@phatina
Copy link
Copy Markdown
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.

3 participants