<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 6, 2019 at 5:32 AM Jo-Philipp Wich <<a href="mailto:jo@mein.io">jo@mein.io</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
the random PARTUUID has been chosen to ensure that a given boot grub<br>
partition (containing grub config, kernel, sysupgrade restore tarball)<br>
boots the correct corresponding rootfs in case multiple openwrt<br>
partitions are present on the device (e.g. different versions on<br>
different block devices).<br>
<br>
Chosing a random uuid at build time was the simplest way to achieve that.<br>
<br>
The random identifier can be replaced by a stable identifier derived<br>
from the version or something like SOURCE_DATE_EPOCH combined with a<br>
checksum over the kernel config or similar.<br>
<br>
Maybe the kernel version magic value would be a suitable pseudorandom<br>
seed candidate to produce a reproducible partuuid which still<br>
distinguishes different kernel/rootfs pairs sufficiently.<br>
<br>
~ Jo<br></blockquote><div> </div><div>Could this be a CLI parameter to make, or something that's written to the .config? </div></div></div>