# Does mender support Initramfs with u-boot

**URL:** <https://hub.mender.io/t/does-mender-support-initramfs-with-u-boot/5228>\
**Category:** General Discussions\
**Created:** [September 4, 2022, 12:41am UTC](https://hub.mender.io/t/does-mender-support-initramfs-with-u-boot/5228 "2022-09-04T00:41:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![telemetrak-ck](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@telemetrak-ck](https://hub.mender.io/u/telemetrak-ck)\
**Post date:** [September 4, 2022, 12:41am UTC](https://hub.mender.io/t/does-mender-support-initramfs-with-u-boot/5228/1 "2022-09-04T00:41:29Z")

</div>

Hi,  
I’m on Yocto Dunfell with mender integrated successfully. I’ve been trying to get initramfs to work so that I can follow a suggestion about using an initramfs to mount /data before systemd comes up. It isn’t working and I wonder if something about mender and the uboot configuration are the problem.

–Cameron

---

<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 5, 2022, 8:52am UTC](https://hub.mender.io/t/does-mender-support-initramfs-with-u-boot/5228/2 "2022-09-05T08:52:27Z")

</div>

Are you using [GRUB integration](https://docs.mender.io/3.3/system-updates-yocto-project/board-integration/bootloader-support/grub) or [U-Boot integration](https://docs.mender.io/3.3/system-updates-yocto-project/board-integration/bootloader-support/u-boot)? For GRUB I believe it works out of the box.

For U-Boot I think it can work, but it’s important that the [U-Boot patch](https://docs.mender.io/3.3/system-updates-yocto-project/board-integration/bootloader-support/u-boot/manual-u-boot-integration#manual-u-boot-integration) loads the initramfs from the correct location. Check the environment of the bootloader at boot time by pressing enter and using `printenv` to inspect the environment. Often `bootargs` will contain the arguments, but there is a huge variability in U-Boot environments, so this is not guaranteed; you may have to dig a little. Wherever the initramfs argument is, it’s important that it’s using `${mender_boot_part}` to refer to the location.

We don’t test U-Boot and initramfs together in our CI, so strictly speaking I cannot guarantee that it will work. But I’m not aware of anything that would prevent it either.
