Skip to content

detect OS during runtime#2452

Merged
BareosBot merged 6 commits intobareos:masterfrom
pstorz:dev/pstorz/master/os-runtime-detect
Nov 27, 2025
Merged

detect OS during runtime#2452
BareosBot merged 6 commits intobareos:masterfrom
pstorz:dev/pstorz/master/os-runtime-detect

Conversation

@pstorz
Copy link
Member

@pstorz pstorz commented Nov 24, 2025

Thank you for contributing to the Bareos Project!

This PR contains the commits for runtime OS detection from PR #2346

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
    Required backport PRs have been created
  • Correct milestone is set
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

arogge
arogge previously requested changes Nov 24, 2025
Copy link
Member

@arogge arogge left a comment

Choose a reason for hiding this comment

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

I'm not (yet) happy with the os-release parsing and the missing fallback.
osinfo.cc should probably be renamed to osinfo_unix.cc or something like that.
We also need to look into how to do this properly on MacOS, as probably neither os-release nor struct utsname provide the output we want.

@sebsura sebsura requested a review from arogge November 25, 2025 07:56
@sebsura sebsura changed the title detect OS during runtime. detect OS during runtime Nov 25, 2025
@sebsura sebsura added this to the 25.0.0 milestone Nov 26, 2025
@sebsura sebsura self-assigned this Nov 26, 2025
@sebsura sebsura removed this from the 25.0.0 milestone Nov 26, 2025
@sebsura sebsura force-pushed the dev/pstorz/master/os-runtime-detect branch 2 times, most recently from 80bf142 to 7a9763c Compare November 27, 2025 06:53
@sebsura sebsura added this to the 25.0.0 milestone Nov 27, 2025
@sebsura sebsura dismissed arogge’s stale review November 27, 2025 08:08

All mentioned issues were addressed

sebsura and others added 6 commits November 27, 2025 08:53
(cherry picked from commit 5a09f0c)
VSS is either "" or " VSS", so there should _never_ be a space before
%s.  As the string is static, it also doesnt make sense to format it
at runtime, so I simply added in directly into the format string.
@BareosBot BareosBot force-pushed the dev/pstorz/master/os-runtime-detect branch from 280c8dd to ed2ac02 Compare November 27, 2025 08:54
@BareosBot BareosBot merged commit 74b8b6a into bareos:master Nov 27, 2025
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.

4 participants