Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system: add build date to the ubus output #11

Closed
wants to merge 2 commits into from

Conversation

feckert
Copy link
Member

@feckert feckert commented Jul 24, 2024

This pullrequest consists of two changes.

  • Change the readout source for the required information from '/etc/openwrt_release' to '/usr/lib/os-release'. This is a preparatory commit to read the build date from '/usr/lib/os-release'.
  • Add build date to ubus output

For this to work, a change is needed in the build system that writes the build date to the /usr/lib/os-release' file.

The information required for output via the ubus is currently read from
the file '/etc/openwrt_release'. The same information can also be found
under '/usr/lib/os-release'. This file contains further information and is
also the most common used file in other Linux distributions.

So let´s use this file.

Signed-off-by: Florian Eckert <[email protected]>
In the buildsystm the value 'SOURCE_DATE_EPOCH' is used for reproducible
builds. This commit adds the new information to the system board ubus call.

This information must also be added during the openwrt build to the
'/usr/lib/os-release' file so that this can be read.

Signed-off-by: Florian Eckert <[email protected]>
@hauke
Copy link
Member

hauke commented Oct 20, 2024

Thank you for the PR, applied in 0f88a52 and ef3ab8b.

@hauke hauke closed this Oct 20, 2024
@feckert feckert deleted the pr/20240618-system-os-release branch October 21, 2024 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants