Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 6b86c48

Browse files
author
Matt Fleming
committed
Merge branch 'mfleming/ostype-fix'
Pull request #44: "We've had reports of some Dell firmware not being able to boot the live images automatically, which is probably caused by marking the bootable partition as fat (0xc) and not EFI System Partition (0xef)." * mfleming/ostype-fix: luv-live-image: Mark boot partition as EFI System Partition (ESP)
2 parents ca11c83 + f4b214c commit 6b86c48

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

meta-luv/recipes-core/images/luv-live-image.bb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,20 @@ build_img() {
5959

6060
parted $IMG set 2 boot on
6161

62+
# Mark the second partition OSType field as EFI System Partition as
63+
# specified in the UEFI specification.
64+
fdisk $IMG<<EOF
65+
t
66+
2
67+
ef
68+
w
69+
EOF
70+
6271
dd conv=notrunc if=${VFAT_RESULTS} of=$IMG seek=1 bs=512
6372
dd if=${VFAT} of=$IMG seek=$(expr $(expr $VFAT_RESULTS_SIZE / 512) + 1) bs=512
6473

74+
dd conv=notrunc if=${VFAT} of=$IMG seek=1 bs=512
75+
6576
}
6677

6778
python do_create_img() {

0 commit comments

Comments
 (0)