# Rootfs Switch Not Occurring on Raspberry Pi 4-64 with meta-mender Kirkstone

**URL:** <https://hub.mender.io/t/rootfs-switch-not-occurring-on-raspberry-pi-4-64-with-meta-mender-kirkstone/6543>\
**Category:** General Discussions\
**Tags:** yocto, mender-client, raspberry-pi-4, kirkstone\
**Created:** [February 9, 2024, 3:14am UTC](https://hub.mender.io/t/rootfs-switch-not-occurring-on-raspberry-pi-4-64-with-meta-mender-kirkstone/6543 "2024-02-09T03:14:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nomtor0204](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/nomtor0204/32/2355_2.png) [@nomtor0204](https://hub.mender.io/u/nomtor0204)\
**Post date:** [February 9, 2024, 3:14am UTC](https://hub.mender.io/t/rootfs-switch-not-occurring-on-raspberry-pi-4-64-with-meta-mender-kirkstone/6543/1 "2024-02-09T03:14:49Z")

</div>

Hello,

I’ve been building images for raspberry pi 4-64 using the latest kirkstone branch of meta-mender.

After updating the OS with an image built from this branch, I encountered an issue where the rootfs switch does not occur, and the system always boots from partition A (/dev/mmcblk0p2).

Upon investigation, it appears that the issue stems from `MENDER_FEATURES_ENABLE` not having `mender-update-install` specified, resulting in the `cmdline.txt` patch not being applied.

There is a process in the following recipe that changes the root in `cmdline.txt` to `${mender_kernel_root}` when `mender-update-install` is enabled:

> <https://github.com/mendersoftware/meta-mender/blob/47943364088ecba13a4e63b78e013f2c4b955267/meta-mender-raspberrypi/recipes-bsp/bootfiles/rpi-cmdline.bbappend#L1>

With our previous configuration using the Go-based mender-client, we used `mender-full.bbclass`, which only utilizes `mender-client-install` (without specifying `mender-update-install`).

Is it possible to adjust the setup so that specifying only `mender-client-install` also allows for successful OS updates?

---

<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:** [February 9, 2024, 8:14am UTC](https://hub.mender.io/t/rootfs-switch-not-occurring-on-raspberry-pi-4-64-with-meta-mender-kirkstone/6543/2 "2024-02-09T08:14:04Z")

</div>

Thanks for bringing it up @nomtor0204!

Just so I understand correctly, this occurred alongside bumping to the Mender Client 4.0?

Greets,  
Josef

---

<div class="post-metadata">

**Author:** ![nomtor0204](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/nomtor0204/32/2355_2.png) [@nomtor0204](https://hub.mender.io/u/nomtor0204)\
**Post date:** [February 9, 2024, 8:37am UTC](https://hub.mender.io/t/rootfs-switch-not-occurring-on-raspberry-pi-4-64-with-meta-mender-kirkstone/6543/3 "2024-02-09T08:37:14Z")

</div>

Hi @TheYoctoJester ,

> this occurred alongside bumping to the Mender Client 4.0?

No, this issue occurred with a build of mender-client 3.5.2. I have not bumping to Mender Client 4.0.

The trigger was updating the meta-layer repositories. I noticed this issue when I updated poky from kirkstone-4.0.15 (around 2023/12/25) to kirkstone-4.0.16 (around 2024/02/08) and updated the meta-mender kirkstone branch to the latest.

I have not specified a PREFERRED\_VERSION for mender-client, so the latest 3.5.2 available in kirkstone is being built.

---

<div class="post-metadata">

**Author:** ![ajaitx](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ajaitx/32/2107_2.png) [@ajaitx](https://hub.mender.io/u/ajaitx)\
**Post date:** [February 10, 2024, 8:12am UTC](https://hub.mender.io/t/rootfs-switch-not-occurring-on-raspberry-pi-4-64-with-meta-mender-kirkstone/6543/4 "2024-02-10T08:12:52Z")

</div>

Hello,

I am also facing same issue with the mender client.  
After the upgrade using ‘mender install \<.mender artifact\>’, the reboot is not switching to the other rootfs partition.  
This issue is found with latest version of the meta-mender layer (commit id: 2eea9e6766f8b4c914c995fb1209f59c86643619).  
Mender client version: 3.5.2 runtime: go1.17.13

Basically the mender based fw update fully broken!!!. please fix it asap.

Thanks.

---

<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:** [February 13, 2024, 11:50am UTC](https://hub.mender.io/t/rootfs-switch-not-occurring-on-raspberry-pi-4-64-with-meta-mender-kirkstone/6543/5 "2024-02-13T11:50:49Z")

</div>

Sounds serious. There is a related discussion in [this pull request](https://github.com/mendersoftware/meta-mender/pull/2027#issuecomment-1926575947); I couldn’t reproduce it at the time, but maybe it’s easier to reproduce with the RPi.

We’ve created [MEN-7039](https://northerntech.atlassian.net/browse/MEN-7039) to investigate it.

---

<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:** [February 14, 2024, 7:01am UTC](https://hub.mender.io/t/rootfs-switch-not-occurring-on-raspberry-pi-4-64-with-meta-mender-kirkstone/6543/6 "2024-02-14T07:01:57Z")

</div>

Btw, the latest official tag, `kirkstone-v2023.12`, should still work, so I encourage you to stick with that until this gets fixed.

---

<div class="post-metadata">

**Author:** ![pyxlwuff](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@pyxlwuff](https://hub.mender.io/u/pyxlwuff)\
**Post date:** [February 22, 2024, 4:52pm UTC](https://hub.mender.io/t/rootfs-switch-not-occurring-on-raspberry-pi-4-64-with-meta-mender-kirkstone/6543/7 "2024-02-22T16:52:41Z")

</div>

Hi there, I tried with both `kirkstone-v2023.12` and `kirkstone-v2023.10` but couldn’t get either to perform a rootfs switch. Also attempted the `MENDER_FEATURES_ENABLE` method that was described in another post relating to this with both versions and had no change in the result. Any idea why this would be the case? I have a feeling it might be something on my side at this point but no idea what it could be.

I’ve also noticed [this PR](https://github.com/mendersoftware/meta-mender/pull/2078) which potentially fixes it, but didn’t seem to change anything for me when I built it

---

<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:** [February 23, 2024, 8:21am UTC](https://hub.mender.io/t/rootfs-switch-not-occurring-on-raspberry-pi-4-64-with-meta-mender-kirkstone/6543/8 "2024-02-23T08:21:33Z")

</div>

If the rootfs switch doesn’t work in `kirkstone-v2023.12` for you, then it is probably a different problem, since it works for others. Unfortunately the PR is unlikely to help you since this only fixes the specific problem which was introduced after `kirkstone-v2023.12`.

But otherwise yes, that PR is indeed an attempt at fixing the problem with the `mender-update-install` feature. If someone wants to test it, it would be great!

---

<div class="post-metadata">

**Author:** ![pyxlwuff](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@pyxlwuff](https://hub.mender.io/u/pyxlwuff)\
**Post date:** [February 23, 2024, 10:08am UTC](https://hub.mender.io/t/rootfs-switch-not-occurring-on-raspberry-pi-4-64-with-meta-mender-kirkstone/6543/9 "2024-02-23T10:08:45Z")

</div>

Yeah after checking a bunch of different tags yesterday I started to come to the same conclusion as well that it might be something elsewhere instead (potentially something on my end). I’ve opened a separate thread for that.

---

<div class="post-metadata">

**Author:** ![nomtor0204](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/nomtor0204/32/2355_2.png) [@nomtor0204](https://hub.mender.io/u/nomtor0204)\
**Post date:** [February 26, 2024, 1:58am UTC](https://hub.mender.io/t/rootfs-switch-not-occurring-on-raspberry-pi-4-64-with-meta-mender-kirkstone/6543/10 "2024-02-26T01:58:02Z")

</div>

Hi @kacf,

I tried this [PR](https://github.com/mendersoftware/meta-mender/pull/2079). I have confirmed that the issue has been resolved. Thank you for your support.

---

<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:** [February 26, 2024, 7:18am UTC](https://hub.mender.io/t/rootfs-switch-not-occurring-on-raspberry-pi-4-64-with-meta-mender-kirkstone/6543/11 "2024-02-26T07:18:04Z")

</div>

Thanks for confirming. The fix has been merged now.
