EFI: Restore the previous logic for BOOT_VOLUME_BOOTED_FROM_IMAGE.

Fixes booting from USB drives on my machine after previous changes.
This commit is contained in:
Augustin Cavalier 2020-02-08 16:00:40 -05:00
parent 5be6527a63
commit 3a63d1efff

View File

@ -173,7 +173,7 @@ platform_register_boot_device(Node *device)
gBootVolume.SetInt32(BOOT_METHOD, efiDevice->ReadOnly() ? BOOT_METHOD_CD:
BOOT_METHOD_HARD_DISK);
gBootVolume.SetBool(BOOT_VOLUME_BOOTED_FROM_IMAGE, true);
gBootVolume.SetBool(BOOT_VOLUME_BOOTED_FROM_IMAGE, efiDevice->ReadOnly());
gBootVolume.SetData(BOOT_VOLUME_DISK_IDENTIFIER, B_RAW_TYPE,
&identifier, sizeof(disk_identifier));