Skip to content

analyze: add new verb "smbios11" for listing passed smbios type #11 strings - #32810

Merged
poettering merged 3 commits into
systemd:mainfrom
poettering:smbios11-analyze
Jun 12, 2024
Merged

poettering merged 3 commits into
systemd:mainfrom
poettering:smbios11-analyze

Conversation

@poettering

@poettering poettering commented May 14, 2024 •

Copy link
Copy Markdown
Member

There's no nice way to query this otherwise with default distro tools

@dnicolodi

Copy link
Copy Markdown

Would it make sense to have the tool optionally emit machine parsable output (ie omit the trailing log message)?

@poettering

Copy link
Copy Markdown
Member Author

Would it make sense to have the tool optionally emit machine parsable output (ie omit the trailing log message)?

that goes to stderr anyway (unlike the strings themselves) and you can always use SYSTEMD_LOG_TARGET=null...

@github-actions github-actions Bot added documentation build-system util-lib meson please-review PR is ready for (re-)review by a maintainer labels May 14, 2024
@dnicolodi

Copy link
Copy Markdown

Right. I didn't pay attention to how the command is implemented, I just inferred from the documentation. Thanks!

@github-actions

github-actions Bot commented May 14, 2024 •

Copy link
Copy Markdown

Note

We had successfully released a new major release. We are no longer in a development freeze phase.
We will try our best to get back to your PR as soon as possible. Thank you for your patience.

Comment thread src/shared/smbios11.c Outdated
Comment thread src/analyze/analyze-smbios11.c Outdated
Comment thread src/analyze/analyze-smbios11.c
Comment thread man/systemd-analyze.xml
@poettering

Copy link
Copy Markdown
Member Author

new version pushed, ptal

@yuwata yuwata left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
Please add simple coverage tests for the new command.

@poettering

Copy link
Copy Markdown
Member Author

Right. I didn't pay attention to how the command is implemented, I just inferred from the documentation. Thanks!

btw, the message is now also suppressed if you add "-q" or "--quiet" to the cmdline

@poettering

Copy link
Copy Markdown
Member Author

Please add simple coverage tests for the new command.

done

Comment thread src/shared/smbios11.c
Comment thread src/shared/smbios11.c
I find myself wanting to check this data with a quick command, and
browsing through /sys/ manually getting binary data sucks. Hence let's
do add a nice little analysis tool.
@poettering poettering added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed and removed good-to-merge/after-next-release labels Jun 12, 2024
@poettering
poettering merged commit df51530 into systemd:main Jun 12, 2024
@github-actions github-actions Bot removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants