You know that rootfs already creates /etc/version file with $DATETIME?
Either way, you can fix it like this:
mark_os_buildtime[vardepsexclude] = "DATETIME"
--
Denys
On Thu, Jun 11, 2020 at 09:56:42AM +0200, Mauro Ziliani wrote:
> In the image recipe i write ${DATETIME} in
> ${IMAGE_ROOTFS}/etc/buildtime by a function.
>
> This is the part of recipe
>
>
> ROOTFS_POSTPROCESS_COMMAND_append = " \
> mark_os_buildtime; \
>
> "
>
>
> mark_os_buildtime() {
> echo "${PV} ${DATETIME}" > ${IMAGE_ROOTFS}/etc/buildtime
>
> }
>
>
>
> Il 10/06/20 20:44, Josef Holzmayr ha scritto:
> >Howdy!
> >
> >Am 10.06.2020 um 19:48 schrieb Mauro Ziliani:
> >>Hi all.
> >>
> >>This error
> >>
> >>NOTE: Executing RunQueue Tasks
> >>ERROR: When reparsing <recipe_of_image>.do_rootfs, the basehash
> >>value changed from 7419bfc242fa2eee9ce87b18ebf40d25 to
> >>5b2654046d2ac406f3484b3286de0acd. The metadata is not
> >>deterministic and this needs to be fixed.
> >>
> >>
> >>Why?
> >
> >Maybe some script / part of the recipe is dependent on the
> >execution time or evaluation order? The error basically tells you
> >that your build is not reproducible across runs.
> >
> >Greetz
> >
> >
> >
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#49625): https://lists.yoctoproject.org/g/yocto/message/49625
Mute This Topic: https://lists.yoctoproject.org/mt/74802412/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-