How to Clear MENDER_STORAGE_DEVICE

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) 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.

Hi @threesc,

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

bitbake-getvar -r core-image-minimal MENDER_STORAGE_DEVICE

and if it is just derived from MENDER_STORAGE_DEVICE_DEFAULT, also

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:

MENDER_STORAGE_DEVICE:forcevariable = """

Greetz,
Josef

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.