From 536cd09b73ab2ae6b53d52cfe012b7f7d4edc361 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Mon, 16 Jan 2023 17:12:04 +0100 Subject: [PATCH] riscv64: set attribute required partition for firmware According to the EBBR specification the GPT partitions for firmware should have attribute bit 0 (Required Partition) set. Signed-off-by: Heinrich Schuchardt --- live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary b/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary index 8ef4fca6..19bf5252 100755 --- a/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary +++ b/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary @@ -84,12 +84,15 @@ create_partitions() { --new=13:256:25575 \ --change-name=13:loader1 \ --typecode=13:B161E8AB-7D4B-4DB4-821C-4120A0554A35 \ + --attributes=13:set:0 \ --new=16:25576:32799 \ --change-name=16:loader2b \ --typecode=16:F79E76D9-AC98-418B-8F31-E17EA24FF07C \ + --attributes=16:set:0 \ --new=14:32800:43007 \ --change-name=14:loader2 \ --typecode=14:F4FA3898-3478-4941-887D-FCEC4E9E3C05 \ + --attributes=14:set:0 \ --new=15::+106M \ --typecode=15:ef00 \ --change-name=15:ESP \ @@ -104,6 +107,7 @@ create_partitions() { --new=13:256:25575 \ --change-name=13:loader \ --typecode=13:ef02 \ + --attributes=13:set:0 \ --new=15::+106M \ --typecode=15:ef00 \ --change-name=15:ESP \ @@ -132,9 +136,11 @@ create_partitions() { --new=13:34:2081 \ --change-name=13:loader1 \ --typecode=13:5B193300-FC78-40CD-8002-E86C45580B47 \ + --attributes=13:set:0 \ --new=14:2082:10239 \ --change-name=14:loader2 \ --typecode=14:2E54B353-1271-4842-806F-E436D6AF6985 \ + --attributes=14:set:0 \ --new=15::+106M \ --typecode=15:ef00 \ --new=12::+4M \