Skip to content

Commit 8518e63

Browse files
committed
functions.sh: Add /boot/efi/.builder check to ignore the device tree ESP UUID
This allows the image builder to build in a fake ESP inside the chroot. Signed-off-by: Hector Martin <[email protected]>
1 parent 36209d5 commit 8518e63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ mount_sys_esp() {
2929
done
3030

3131
esp_uuid="$(cat /proc/device-tree/chosen/asahi,efi-system-partition 2>/dev/null | sed 's/\x00//')"
32-
if [ -z "$esp_uuid" ]; then
32+
if [ -e /boot/efi/.builder ] || [ -e /boot/.builder ] || [ -z "$esp_uuid" ]; then
3333
if [ -e "/boot/efi/m1n1" ]; then
3434
bootmnt="/boot/efi"
3535
elif [ -e "/boot/m1n1" ]; then

0 commit comments

Comments
 (0)