# Mender-convert how to add bootargs to kernel

**URL:** <https://hub.mender.io/t/mender-convert-how-to-add-bootargs-to-kernel/2000>\
**Category:** General Discussions\
**Tags:** mender-convert\
**Created:** [June 3, 2020, 9:47am UTC](https://hub.mender.io/t/mender-convert-how-to-add-bootargs-to-kernel/2000 "2020-06-03T09:47:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [June 3, 2020, 9:47am UTC](https://hub.mender.io/t/mender-convert-how-to-add-bootargs-to-kernel/2000/1 "2020-06-03T09:47:59Z")

</div>

I assume when using mender-convert you can add boot parameters that get passed to the kernel via the MENDER\_GRUB\_KERNEL\_BOOT\_ARGS variable during build phase, but how do you do it for testing whilst in a running operating system?

Tried updating /etc/default/grub GRUB\_CMDLINE\_LINUX  
Tried setting bootargs with fw\_setenv

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [June 3, 2020, 10:33am UTC](https://hub.mender.io/t/mender-convert-how-to-add-bootargs-to-kernel/2000/2 "2020-06-03T10:33:45Z")

</div>

is it as simple as editing bootargs in the /boot/efi/EFI/BOOT/grub.cfg

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [June 3, 2020, 10:38am UTC](https://hub.mender.io/t/mender-convert-how-to-add-bootargs-to-kernel/2000/3 "2020-06-03T10:38:05Z")

</div>

> is it as simple as editing bootargs in the /boot/efi/EFI/BOOT/grub.cfg

Exactly.

The configuration we provide is not really compatible with `/etc/default/grub` and the workflow this implies.

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [June 3, 2020, 10:46am UTC](https://hub.mender.io/t/mender-convert-how-to-add-bootargs-to-kernel/2000/4 "2020-06-03T10:46:47Z")

</div>

awesome thanks, yep its working. Reason I mention it is, i have noticed that after a mender-convert the EFI fat partition is being flagged as dirty bit set and needs fsck to be ran on boot along with passno set in /etc/fstab to fix it

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [June 3, 2020, 11:01am UTC](https://hub.mender.io/t/mender-convert-how-to-add-bootargs-to-kernel/2000/5 "2020-06-03T11:01:43Z")

</div>

I can see that the passno in mender-convert-modify is hard coded to 0 on all partitions except root  
Would it be advantagous to make this configurable? In the meantime do you know how I would use PLATFORM\_MODIFY\_HOOKS or USER\_LOCAL\_MODIFY\_HOOKS to make the necessary changes to fstab? Are these as simple as setting the environment variables prior to running mender-convert?

---

<div class="post-metadata">

**Author:** ![dellgreen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dellgreen/32/85_2.png) [@dellgreen](https://hub.mender.io/u/dellgreen)\
**Post date:** [June 3, 2020, 11:07am UTC](https://hub.mender.io/t/mender-convert-how-to-add-bootargs-to-kernel/2000/6 "2020-06-03T11:07:36Z")

</div>

on closer inspection it looks like i need to provide implementations of these functions in my config files.
