# How to change console\_bootargs in Yocto builds?

**URL:** <https://hub.mender.io/t/how-to-change-console-bootargs-in-yocto-builds/2071>\
**Category:** General Discussions\
**Tags:** yocto, warrior, boot\
**Created:** [June 19, 2020, 6:22am UTC](https://hub.mender.io/t/how-to-change-console-bootargs-in-yocto-builds/2071 "2020-06-19T06:22:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deffo](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@deffo](https://hub.mender.io/u/deffo)\
**Post date:** [June 19, 2020, 6:22am UTC](https://hub.mender.io/t/how-to-change-console-bootargs-in-yocto-builds/2071/1 "2020-06-19T06:22:03Z")

</div>

The default of console\_bootargs seems to be

`"console=tty0,115200n8 console=ttyS0,115200n8 console=ttyO0,115200n8 console=ttyAMA0,115200n8"`

As we do not want any console in our setup, how can we disable it easily in Yocto? Unfortunately there doesn’t seem to be a MENDER\_ variable.

Apparently console settings are set via

`set console_bootargs="console=tty0,115200n8 console=ttyS0,115200n8 console=ttyO0,115200n8 console=ttyAMA0,115200n8"`

in

`01_console_bootargs_grub.cfg`

in the repo

`https://github.com/mendersoftware/grub-mender-grubenv`.

---

<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:** [June 19, 2020, 7:38am UTC](https://hub.mender.io/t/how-to-change-console-bootargs-in-yocto-builds/2071/2 "2020-06-19T07:38:38Z")

</div>

You can make a `grub-mender-grubenv_%.bbappend` and add extra cfg files there. If they follow the same format, `XX_DESCRIPTION_grub.cfg`, where `XX` is two digits, then it will be automatically picked up and executed according to the numbered order. So you can put your own console command at some point later in the execution.
