Correct EFI chainloader image device path #2397
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
使用
chainloader
加载 EFI 文件时,DevicePath
中的磁盘分区应当设为文件所在的磁盘分区,而不是$root
分区。另外,根据 UEFI Spec,
DevicePath
可以为空。http://bbs.wuyou.net/forum.php?mod=redirect&goto=findpost&ptid=423940&pid=4923455
必须在
chainloader
之前执行set root=(hd1, 1)
,这有点让人迷惑。Ubuntu, RedHat 等主流发行版的 GRUB 2 都已经修复了这个问题。