Skip to content

Commit a079050

Browse files
kettenisjannau
authored andcommitted
apple: Nail down the EFI system partition
Now that we have a way to find the appropriate EFI system partition on the internal NVMe storage, nail it down as the preferred EFI system partition such that we can use it to store EFI variables. This allows multiple OS installations to exist on Apple Silicon machines without interfering with eachother. Signed-off-by: Mark Kettenis <[email protected]>
1 parent 976376a commit a079050

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

arch/arm/mach-apple/board.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,8 +821,12 @@ static char *asahi_esp_devpart(void)
821821
break;
822822
}
823823

824-
if (part > 0)
824+
if (part > 0) {
825825
snprintf(devpart, sizeof(devpart), "%x:%x", devnum, part);
826+
efi_system_partition.uclass_id = UCLASS_NVME;
827+
efi_system_partition.devnum = devnum;
828+
efi_system_partition.part = part;
829+
}
826830

827831
return devpart;
828832
}

0 commit comments

Comments
 (0)