Skip to content

Commit 09fac16

Browse files
radxa-chenchongbiaoRadxaYuntian
authored andcommitted
fix: Set legacy_boot flag without enabling ESP on GPT partitions
在 GPT 分区上使用 part-set-bootable 将默认自动设置 legacy_boot 和 esp 标志. 如果该分区不打算用作 EFI 系统分区, 则此行为可能会干扰 UEFI 启动预期.
1 parent c6b2df1 commit 09fac16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/share/rsdk/build/image.jsonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ then
4242
part-set-bootable /dev/sda 2 true
4343
part-add /dev/sda primary 679936 -34
4444
part-set-bootable /dev/sda 3 true
45+
part-set-gpt-guid /dev/sda 3 8300
4546
|||
4647
else
4748
|||

0 commit comments

Comments
 (0)