src/gf-oemid: mount ESP partition if it exists
@@ -71,7 +71,11 @@ coreos_gf_run_mount "${tmp_dest}"
# * grub config
# * BLS config (for subsequent config regeneration)
# First, the grub config.
+if coreos_gf exists "/boot/efi"; then
+ grubcfg_path=/boot/efi/EFI/fedora/grub.cfg
+else
grubcfg_path=/boot/loader/grub.cfg
+fi
coreos_gf download "${grubcfg_path}" "${tmpd}"/grub.cfg
# Remove any oemid currently there
sed -i -e 's, coreos.oem.id=[a-zA-Z0-9]*,,g' "${tmpd}"/grub.cfg
