Git hash used for snapshot versions?

Is there an easy way to statically determine what git commit hash a snapshot version was built from?

Are there accessible logs somewhere, or is it recorded in a build artifact?

Thanks!

p.s. I know I can find it installing/running the firmware, using the displayed revision number (e.g. r3298-47bf110cbb) along with https://openwrt.org/docs/guide-developer/source-code/source-revision-calculation. But I would prefer something static

By "static" do you mean looking at the image itself?

You can always mount the ROM and look at

/etc/openwrt_release
/etc/openwrt_version
/etc/os-release

Use the version number of the base-files package. You can extract it from the filename or the Packages manifest

1 Like

This is the easiest thing to do. Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.