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

tool: improve sd-boot generation display name #101

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

nikstur
Copy link
Collaborator

@nikstur nikstur commented Feb 8, 2023

Leverage the bootspec label field in its intended way. The VERSION_ID
of the os-release in the stub now only contains the generation number
and the build time. This makes a correct PRETTY_NAME entirely dependent
on correct information in the bootspec label field.

This should yield a display name similar to this: NixOS Stoat 23.05 (Linux 6.1.9) (Generation 85, Built on 2023-02-01)

Depends on #100

Closes #99

@nikstur nikstur changed the title Improve generation name tool: improve sd-boot generation display name Feb 8, 2023
@blitz
Copy link
Member

blitz commented Feb 9, 2023

@nikstur Looks good. Can you rebase?

Leverage the bootspec `label` field in its intended way. The VERSION_ID
of the os-release in the stub now only contains the generation number
and the build time. This makes a correct PRETTY_NAME entirely dependent
on correct information in the bootspec `label` field.
@nikstur
Copy link
Collaborator Author

nikstur commented Feb 10, 2023

I'll take that as an approval and merge it ;)

@nikstur nikstur merged commit a75e2b4 into master Feb 10, 2023
@nikstur nikstur deleted the improve-generation-name branch February 23, 2023 16:06
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.

Generation name in boot screen contains twice NixOS and kernel version
2 participants