From f23bcdb4b87c0093364b9a2173e1ac50243dafc4 Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Wed, 21 Mar 2018 10:58:03 -0500
Subject: [PATCH] chroot: try calling grub-install

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 scripts/chroot.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/chroot.sh b/scripts/chroot.sh
index 0bf8f9372..620959891 100755
--- a/scripts/chroot.sh
+++ b/scripts/chroot.sh
@@ -1013,6 +1013,10 @@ cat > "${DIR}/chroot_script.sh" <<-__EOF__
 		echo "GRUB_DISABLE_LINUX_UUID=true" >> /etc/default/grub
 		echo "rcn-ee: grub: disable OS_PROBER, repeated OS entries" >> /etc/default/grub
 		echo "GRUB_DISABLE_OS_PROBER=true" >> /etc/default/grub
+
+		mkdir -p /boot/efi/
+		echo "Log: (chroot): grub-install --efi-directory=/boot/efi/ --target=arm-efi"
+		grub-install --efi-directory=/boot/efi/ --target=arm-efi
 	}
 
 	#cat /chroot_script.sh
-- 
GitLab