build_image: run grub_install.sh twice

Hopefully will work around https://github.com/coreos/bugs/issues/2284
This commit is contained in:
Andrew Jeddeloh 2018-03-29 13:17:49 -07:00
parent 49735bca16
commit 8b9554c170

View File

@ -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