# Grub.cfg not updated on the system

**URL:** <https://hub.mender.io/t/grub-cfg-not-updated-on-the-system/6965>\
**Category:** General Discussions\
**Created:** [June 25, 2024, 10:10am UTC](https://hub.mender.io/t/grub-cfg-not-updated-on-the-system/6965 "2024-06-25T10:10:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssuesens](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ssuesens/32/1837_2.png) [@ssuesens](https://hub.mender.io/u/ssuesens)\
**Post date:** [June 25, 2024, 10:10am UTC](https://hub.mender.io/t/grub-cfg-not-updated-on-the-system/6965/1 "2024-06-25T10:10:21Z")

</div>

Hello,

when I build a new mender image and change the bootargs in grub.cfg file via a recipe, everything is fine.  
But when I install the mender image via mender-update on my system, the grub.cfg file is not updated.  
Is this behavior correct?  
What is the right way to update the grub.cfg file on the system via mender-update?

F.y.i: The file is hosted at /boot/efi/EFI/BOOT on my system.

Regards, Sebastian

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [June 28, 2024, 8:38am UTC](https://hub.mender.io/t/grub-cfg-not-updated-on-the-system/6965/2 "2024-06-28T08:38:21Z")

</div>

Hi @ssuesens,

The `grub.cfg` being outside of the root filesystem means that it is not deployed along a standard system upgrade. Plus, Mender requires GRUB to handle the A/B switching, so I would be careful to touch the files. If it is absolutely required, you can always use a state script or such, but you will lose rollback capabilities for the file and hence introduce a single point of failure.

What is the deeper reason why you need to modify this file? Maybe a better approach is to incorporate a scripted loading strategy in GRUB?

Greets,  
Josef
