From 8b9554c17010910fdb49e4ee5bd6bf41bd974bfe Mon Sep 17 00:00:00 2001 From: Andrew Jeddeloh Date: Thu, 29 Mar 2018 13:17:49 -0700 Subject: [PATCH] build_image: run grub_install.sh twice Hopefully will work around https://github.com/coreos/bugs/issues/2284 --- build_library/build_image_util.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build_library/build_image_util.sh b/build_library/build_image_util.sh index ccf24bd749..26da9ee9b0 100755 --- a/build_library/build_image_util.sh +++ b/build_library/build_image_util.sh @@ -592,6 +592,15 @@ EOF --disk_image="${disk_img}" \ "${grub_args[@]}" done + # hack hack hack to work around grub bug. I'm so sorry + # FIXME: ajeddeloh + for target in ${target_list}; do + ${BUILD_LIBRARY_DIR}/grub_install.sh \ + --board="${BOARD}" \ + --target="${target}" \ + --disk_image="${disk_img}" \ + "${grub_args[@]}" + done fi if [[ -n "${pcr_policy}" ]]; then