# How to porperly add a "provides" to the inventory?

**URL:** <https://hub.mender.io/t/how-to-porperly-add-a-provides-to-the-inventory/3820>\
**Category:** General Discussions\
**Tags:** provides\
**Created:** [July 2, 2021, 10:05am UTC](https://hub.mender.io/t/how-to-porperly-add-a-provides-to-the-inventory/3820 "2021-07-02T10:05:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Steven](https://hub.mender.io/u/Steven)\
**Post date:** [July 2, 2021, 10:05am UTC](https://hub.mender.io/t/how-to-porperly-add-a-provides-to-the-inventory/3820/1 "2021-07-02T10:05:57Z")

</div>

I would like to add a provides in the inventory of our devices. To do this, I use the option `-p config_variant:some_hash` when building the artifact. The provides field does show up in the mender client when I do `mender show-provides` yet that information is not shown in the device’s inventory on the web page. Am I missing something ?

mender-client : 2.6.0 (supposedly, doing `mender --version` returns `unknown	runtime: go1.15.8`)  
mender-artifact: 3.5.1  
built using buildroot  
OS running on a raspberry pi 3B+

PS: Please move the topic if not at the right place. I did not find a general troubleshoot category

---

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [July 2, 2021, 11:24am UTC](https://hub.mender.io/t/how-to-porperly-add-a-provides-to-the-inventory/3820/2 "2021-07-02T11:24:39Z")

</div>

```auto
I would like to add a provides in the inventory of our devices. To do this, I use the 
option `-p config_variant:some_hash` when building the artifact. The provides field 
does show up in the mender client when I do `mender show-provides` yet that 
information is not shown in the device’s inventory on the web page. Am I missing 
something ?

```

Not that I can tell. I would have a look at what inventory scripts you have installed on the device. For our standard setup this is done by the `mender-inventory-provides` script (see [here](https://github.com/mendersoftware/mender/blob/master/support/mender-inventory-provides)). Since you are using build-root I don’t really know how this was installed, so make sure the `install-inventory` target is run in the `Makefile` during installation.

---

<div class="post-metadata">

**Author:** ![Steven](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Steven](https://hub.mender.io/u/Steven)\
**Post date:** [July 2, 2021, 1:03pm UTC](https://hub.mender.io/t/how-to-porperly-add-a-provides-to-the-inventory/3820/3 "2021-07-02T13:03:57Z")

</div>

Hi,

Thank you very much for putting me on the right track. I was indeed missing the `provides` option in the buildroot makefile:

```auto
	$(foreach f,hostinfo network os rootfs-type provides, \
		$(INSTALL) -D -m 0755 $(@D)/support/mender-inventory-$(f) \
			$(TARGET_DIR)/usr/share/mender/inventory/mender-inventory-$(f)
	)

```
