Skip to content
Snippets Groups Projects
Commit 72893c88 authored by Pavel Zhukov's avatar Pavel Zhukov Committed by Zygmunt Krynicki
Browse files

oniro-linux.conf: Specify bootindex for qemu root devices


Without bootindex option qemu doesn't respect boot order when
booting with EFI and writes wrong boot order information into the ovmf
image which breaks boot order permanently.

Signed-off-by: default avatarPavel Zhukov <pavel.zhukov@huawei.com>
parent 3cc5b24b
No related branches found
No related tags found
1 merge request!98oniro-linux.conf: Specify bootindex for qemu root devices
...@@ -91,6 +91,11 @@ EFI_PROVIDER = "grub-efi" ...@@ -91,6 +91,11 @@ EFI_PROVIDER = "grub-efi"
MACHINE_FEATURES:qemux86-64 += "efi" MACHINE_FEATURES:qemux86-64 += "efi"
MACHINE_FEATURES:qemux86 += "efi" MACHINE_FEATURES:qemux86 += "efi"
# Add bootindex to qemu boot device to prevent boot order from being changed in ovmf file
# and not break boot order with EFI. See qemuboot.bbclass for more information
QB_ROOTFS_EXTRA_OPT:qemux86-64 += ",bootindex=0"
QB_ROOTFS_EXTRA_OPT:qemux86 += ",bootindex=0"
# Install the grubenv file deployed by oniro-grub-bootconf package into the EFI partition. # Install the grubenv file deployed by oniro-grub-bootconf package into the EFI partition.
IMAGE_EFI_BOOT_FILES += "grubenv;EFI/BOOT/grubenv" IMAGE_EFI_BOOT_FILES += "grubenv;EFI/BOOT/grubenv"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment