# How to Clear MENDER\_STORAGE\_DEVICE

**URL:** <https://hub.mender.io/t/how-to-clear-mender-storage-device/7890>\
**Category:** General Discussions\
**Tags:** yocto\
**Created:** [July 16, 2025, 5:57am UTC](https://hub.mender.io/t/how-to-clear-mender-storage-device/7890 "2025-07-16T05:57:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![threesc](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@threesc](https://hub.mender.io/u/threesc)\
**Post date:** [July 16, 2025, 5:57am UTC](https://hub.mender.io/t/how-to-clear-mender-storage-device/7890/1 "2025-07-16T05:57:42Z")

</div>

This feels like it must be dumb question, especially since I can’t find anything about it with google, but I am getting this warning in my build:

> WARNING: MENDER\_STORAGE\_DEVICE is ignored when mender-partuuid is enabled. Clear MENDER\_STORAGE\_DEVICE to remove this warning.

and can’t figure out how to get it to stop coming.

I’m currently updating to scarthgap (but as far as I can tell there is same code in master and kirkstone branches) and don’t remember now if the same warning was coming in kirkstone or not.

I’ve found by manually editing the values in ([meta-mender/meta-mender-core/classes/mender-setup.bbclass at kirkstone · mendersoftware/meta-mender · GitHub](https://github.com/mendersoftware/meta-mender/blob/kirkstone/meta-mender-core/classes/mender-setup.bbclass)) that MENDER\_STORAGE\_DEVICE at the time the warning is output is set based on MENDER\_STORAGE\_DEVICE\_DEFAULT, but with bitbake -e I don’t have any value of MENDER\_STORAGE\_DEVICE.

I’ve tried to just not set the variable (in which case I also don’t understand why MENDER\_STORAGE\_DEVICE is missing from the output of bitbake -e) as well as unsetting MENDER\_STORAGE\_DEVICE and MENDER\_STORAGE\_DEVICE\_DEFAULT in my local.conf, but the warning still comes.

Anyone have other ideas what might need to be done to keep that warning away?

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [July 16, 2025, 3:46pm UTC](https://hub.mender.io/t/how-to-clear-mender-storage-device/7890/2 "2025-07-16T15:46:08Z")

</div>

Hi @threesc,

The best way would be to find out where the assignments actually come from. You can use

```auto
bitbake-getvar -r core-image-minimal MENDER_STORAGE_DEVICE

```

and if it is just derived from `MENDER_STORAGE_DEVICE_DEFAULT`, also

```auto
bitbake-getvar -r core-image-minimal MENDER_STORAGE_DEVICE_DEFAULT

```

to find the original assignment.

Alternatively, you can hard-unset it in `local.conf` like this:

```auto
MENDER_STORAGE_DEVICE:forcevariable = """

```

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![threesc](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@threesc](https://hub.mender.io/u/threesc)\
**Post date:** [July 17, 2025, 4:40am UTC](https://hub.mender.io/t/how-to-clear-mender-storage-device/7890/3 "2025-07-17T04:40:31Z")

</div>

Thanks, turns out I missed the obvious option and just

> MENDER\_STORAGE\_DEVICE = “”

in local.conf works to clear the variable, while I had thought the variable needed to not exist.

Also, checking the if statement in mender-setup.bbclass again it should have been very obviously an option to try.
