How to change console_bootargs in Yocto builds?

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.

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.