# Use fw\_printenv \`--no-header\` flag

**URL:** <https://hub.mender.io/t/use-fw-printenv-no-header-flag/5474>\
**Category:** General Discussions\
**Created:** [December 4, 2022, 1:29pm UTC](https://hub.mender.io/t/use-fw-printenv-no-header-flag/5474 "2022-12-04T13:29:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pamolloy](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/pamolloy/32/1789_2.png) [@pamolloy](https://hub.mender.io/u/pamolloy)\
**Post date:** [December 4, 2022, 1:29pm UTC](https://hub.mender.io/t/use-fw-printenv-no-header-flag/5474/1 "2022-12-04T13:29:31Z")

</div>

There are a few places in examples or tests that the output of `fw_printenv` is parsed. Note that passing `-n` will supress `var=`.

- [mender/rootfs-image-v2 at 03495955dad904dfed32f40040eaa72345521bb4 · mendersoftware/mender · GitHub](https://github.com/mendersoftware/mender/blob/03495955dad904dfed32f40040eaa72345521bb4/tests/rootfs-image-v2#L10)
- [mender/Download\_Leave\_01 at master · mendersoftware/mender · GitHub](https://github.com/mendersoftware/mender/blob/master/examples/state-scripts/retain-ssh-keys/Download_Leave_01#L12)

---

<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:** [December 6, 2022, 1:24pm UTC](https://hub.mender.io/t/use-fw-printenv-no-header-flag/5474/2 "2022-12-06T13:24:49Z")

</div>

Hi @pamolloy This is true. But is this really a problem you think?

---

<div class="post-metadata">

**Author:** ![pamolloy](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/pamolloy/32/1789_2.png) [@pamolloy](https://hub.mender.io/u/pamolloy)\
**Post date:** [December 7, 2022, 10:27am UTC](https://hub.mender.io/t/use-fw-printenv-no-header-flag/5474/3 "2022-12-07T10:27:10Z")

</div>

Not a problem at all. It is just a nice improvement that’s simple to implement, but obviously takes more time to test than implement.

It would be nice to change it in the example since presumably folks are copying that.

---

<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:** [December 7, 2022, 3:05pm UTC](https://hub.mender.io/t/use-fw-printenv-no-header-flag/5474/4 "2022-12-07T15:05:33Z")

</div>

Hmm, after looking a little closer I agree actually. For these examples it would be cleaner for people to get into.

I would be happy to accept a contribution here if you want?

If not, I can take a look, but it would take a while longer right now.

Oh, also the `-n` option. When and where was it introduced?

I also have to check that we don’t alias the `fw_printenv` to something else anywhere. As we don’t always just run u-boot.

---

<div class="post-metadata">

**Author:** ![pamolloy](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/pamolloy/32/1789_2.png) [@pamolloy](https://hub.mender.io/u/pamolloy)\
**Post date:** [December 7, 2022, 3:40pm UTC](https://hub.mender.io/t/use-fw-printenv-no-header-flag/5474/5 "2022-12-07T15:40:08Z")

</div>

Unfortunately, I just don’t have the time, but happy to review.

It has been around for a very long time. Sometime before 2015. Unfortunately, my git skills aren’t strong enough to find the original commit.
