[OpenWrt-Devel] Random PARTUUID on every rebuild

Mike Jones mike at meshplusplus.com
Wed Mar 6 13:24:37 EST 2019


On Wed, Mar 6, 2019 at 5:32 AM Jo-Philipp Wich <jo at mein.io> wrote:

> Hi,
>
> the random PARTUUID has been chosen to ensure that a given boot grub
> partition (containing grub config, kernel, sysupgrade restore tarball)
> boots the correct corresponding rootfs in case multiple openwrt
> partitions are present on the device (e.g. different versions on
> different block devices).
>
> Chosing a random uuid at build time was the simplest way to achieve that.
>
> The random identifier can be replaced by a stable identifier derived
> from the version or something like SOURCE_DATE_EPOCH combined with a
> checksum over the kernel config or similar.
>
> Maybe the kernel version magic value would be a suitable pseudorandom
> seed candidate to produce a reproducible partuuid which still
> distinguishes different kernel/rootfs pairs sufficiently.
>
> ~ Jo
>

Could this be a CLI parameter to make, or something that's written to the
.config?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20190306/5ec6a982/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list