From 945c2c67de6ba8c61a12fe72226ac8b6864a0f59 Mon Sep 17 00:00:00 2001
From: Adam Duskett <aduskett@gmail.com>
Date: Mon, 7 Feb 2022 10:26:10 -0800
Subject: [PATCH] Changelog: Add alternate EFI path to
 mender-inventory-bootloader-integration

Some systems, such as Buildroot, default the EFI partition to /boot/EFI instead
of /boot/efi/EFI. Add the /boot/EFI directory to the
mender-inventory-bootloader-integration script.

Signed-off-by: Adam Duskett <aduskett@gmail.com>
---
 support/mender-inventory-bootloader-integration | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/mender-inventory-bootloader-integration b/support/mender-inventory-bootloader-integration
index 4a790cbab..0ed54d427 100755
--- a/support/mender-inventory-bootloader-integration
+++ b/support/mender-inventory-bootloader-integration
@@ -3,7 +3,7 @@
 # Tries to determine which type of bootloader integration has been used for the
 # running platform.
 
-if [ -d /boot/efi/EFI/BOOT/mender_grubenv1 ]; then
+if [ -d /boot/efi/EFI/BOOT/mender_grubenv1 -o -d /boot/EFI/BOOT/mender_grubenv1 ]; then
     case "$(uname -m)" in
         arm*|aarch*)
             echo mender_bootloader_integration=uboot_uefi_grub