# Boot device not found after integration mender into yocto

**URL:** <https://hub.mender.io/t/boot-device-not-found-after-integration-mender-into-yocto/967>\
**Category:** General Discussions\
**Tags:** yocto, intel, thud\
**Created:** [August 27, 2019, 3:28pm UTC](https://hub.mender.io/t/boot-device-not-found-after-integration-mender-into-yocto/967 "2019-08-27T15:28:43Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [August 30, 2019, 12:55pm UTC](https://hub.mender.io/t/boot-device-not-found-after-integration-mender-into-yocto/967/21 "2019-08-30T12:55:44Z")

</div>

Can you check if this fixes the problem (that’s not the final fix):

```auto
diff --git a/meta-mender-core/classes/mender-part-images.bbclass b/meta-mender-core/classes/mender-part-images.bbclass
index d4b1ff1..35fed98 100644
--- a/meta-mender-core/classes/mender-part-images.bbclass
+++ b/meta-mender-core/classes/mender-part-images.bbclass
@@ -111,7 +111,7 @@ EOF
     if ["${MENDER_BOOT_PART_SIZE_MB}" -ne "0"]; then
         mender_merge_bootfs_and_image_boot_files
         cat >> "$wks" <<EOF
-part --source rootfs --rootfs-dir ${WORKDIR}/bootfs.${BB_CURRENTTASK} --ondisk "$ondisk_dev" --fstype=vfat --label boot --align $alignment_kb --fixed-size ${MENDER_BOOT_PART_SIZE_MB} --active
+part --source rootfs --part-type EF00 --rootfs-dir ${WORKDIR}/bootfs.${BB_CURRENTTASK} --ondisk "$ondisk_dev" --fstype=vfat --label boot --align $alignment_kb --fixed-size ${MENDER_BOOT_PART_SIZE_MB} --active
 EOF
     elif [-n "$IMAGE_BOOT_FILES_STRIPPED"]; then
         bbwarn "MENDER_BOOT_PART_SIZE_MB is set to zero, but IMAGE_BOOT_FILES is not empty. The files are being omitted from the image."

```

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [August 30, 2019, 1:38pm UTC](https://hub.mender.io/t/boot-device-not-found-after-integration-mender-into-yocto/967/22 "2019-08-30T13:38:49Z")

</div>

Edit: My bad, adding `--part-type EF00` did change boot part type in the output image to `EFI System`. Though I do not have hardware to test booting from right now.

@c3ntry, can you give it a go?

---

<div class="post-metadata">

**Author:** ![c3ntry](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/c3ntry/32/677_2.png) [@c3ntry](https://hub.mender.io/u/c3ntry)\
**Post date:** [September 5, 2019, 2:00pm UTC](https://hub.mender.io/t/boot-device-not-found-after-integration-mender-into-yocto/967/23 "2019-09-05T14:00:33Z")

</div>

Sorry for the late reply - the fix worked perfectly. Thank you all for your outstanding help!

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [September 6, 2019, 6:48am UTC](https://hub.mender.io/t/boot-device-not-found-after-integration-mender-into-yocto/967/24 "2019-09-06T06:48:48Z")

</div>

Thanks for checking. There is a more permanent fix posted [here](https://github.com/mendersoftware/meta-mender/pull/813).

[Previous page](https://hub.mender.io/t/boot-device-not-found-after-integration-mender-into-yocto/967.md?page=1)
