--
You received this message because you are subscribed to the Google Groups "Mender List mender.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+un...@lists.mender.io.
To post to this group, send email to men...@lists.mender.io.
Visit this group at https://groups.google.com/a/lists.mender.io/group/mender/.

To unsubscribe from this group and stop receiving emails from it, send an email to mender+unsubscribe@lists.mender.io.
To post to this group, send email to men...@lists.mender.io.
Visit this group at https://groups.google.com/a/lists.mender.io/group/mender/.
----
You received this message because you are subscribed to the Google Groups "Mender List mender.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+unsubscribe@lists.mender.io.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+un...@lists.mender.io.
To post to this group, send email to men...@lists.mender.io.
Visit this group at https://groups.google.com/a/lists.mender.io/group/mender/.
----
You received this message because you are subscribed to the Google Groups "Mender List mender.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+un...@lists.mender.io.
Hi,
I've noticed that mender decides which partition is being booted
by passing a kernel paramter root=/dev/mmcblk0p2 to the kernel.
So the parameter is hard codded into and the booting is decided
by the partition index (mmcblk0p1 or mmcblk0p2).
What I've been witnessing recently after needing to update the
kernel on my device is that sometimes the naming of mmcblk0 changes.
It becomes mmcblk1 or mmcblk2.
When this happens the system stops since it can't mount the rootfs.
In an attempt to see why has this started to happen, I've discovered
that it's normal kernel behavior not to provide stable indexes for device
files and that it randomly depends on the probing order.
Here is a link
https://lkml.org/lkml/2016/4/29/817
Has anyone experienced issues like these?
How do you ensure that the naming won't change at random
when updating the kernel in the field?
--
You received this message because you are subscribed to the Google Groups "Mender List mender.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mender+unsubscribe@lists.mender.io.
Thanks for the reply Mirza.> This is configurable at build-time but only affects the .sdimg file.
There is a hard coded env variable (script) as a result of mender's integration into uboot:mender_setup=setenv mender_kernel_root /dev/mmcblk2p${mender_boot_part}; if test ${mender_boot_part} = 2; then setenv mender_boot_part_name /dev/mmcblk2p2; else setenv mender_boot_part_name /dev/mmcblk2p3; fi; setenv mender_kernel_root_name ${mender_boot_part_name}; setenv mender_uboot_root mmc 0:${mender_boot_part}; setenv mender_uboot_root_name ${mender_boot_part_name}; setenv expand_bootargs "setenv bootargs \\"${bootargs}\\""; run expand_bootargs; setenv expand_bootargsAha...I guess that's what you meant. It influences the .sdimage as opposed to .mender one.> UUID`s are probably a more stable approach and it might be possible to set these to fixed values during build time, I know at least that the wic tool has options like "--fsuuid" but I have not really tried this out but could be worth investigatingI don't yet understand how the suggested UUID approach scales when you want to usethe same image on say 10000 production devices.So far labels seem to be perhaps a more scalable solution.i.e. /dev/disk/by-label/primary
> I would guess that the current option is to patch the kernel should the indexing change, or more specifically patchthe device-tree of the Linux kernel because that is where it could change probe order and hence change the indexing.That seems like our best approach for now yes,to be honest it does seem hacky :)Changing the device tree until the naming gets right again by chance and consideringthat a reliable option...