Skip to content

rpm: don't fail, if install log file isn't writable#2473

Merged
BareosBot merged 5 commits intomasterfrom
dev/joergs/rpm-immutable
Dec 15, 2025
Merged

rpm: don't fail, if install log file isn't writable#2473
BareosBot merged 5 commits intomasterfrom
dev/joergs/rpm-immutable

Conversation

@joergsteffens
Copy link
Member

@joergsteffens joergsteffens commented Dec 4, 2025

As our RPM installation handles some complex update scenarios it write to an install log file.
On some systems, it is not possible to write log files, because /var is read-only. Specifically this is the case on immutable systems like Fedora Silverblue. In that case, we write to stdout.

Fix #2465

Thank you for contributing to the Bareos Project!

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

@joergsteffens joergsteffens self-assigned this Dec 4, 2025
@pstorz pstorz changed the title rpm: don't fail, if install log file isn't wrtiable rpm: don't fail, if install log file isn't writable Dec 4, 2025
@joergsteffens joergsteffens marked this pull request as ready for review December 4, 2025 16:06
@joergsteffens
Copy link
Member Author

Confirmed to work also on Fedora Silverblue in #2465

Copy link
Contributor

@bruno-at-bareos bruno-at-bareos left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes, I would like to see them spelled constantly like other.
Please also prepare backport for 25.

@bruno-at-bareos bruno-at-bareos added this to the 26.0.0 milestone Dec 8, 2025
@bruno-at-bareos bruno-at-bareos added the bug This addresses a bug label Dec 8, 2025
@joergsteffens joergsteffens force-pushed the dev/joergs/rpm-immutable branch from fa8e654 to 46d4d4c Compare December 8, 2025 15:28
@joergsteffens joergsteffens marked this pull request as draft December 9, 2025 13:52
@joergsteffens joergsteffens force-pushed the dev/joergs/rpm-immutable branch 2 times, most recently from 5a82996 to d4f1ead Compare December 9, 2025 15:29
@joergsteffens joergsteffens marked this pull request as ready for review December 9, 2025 15:30
@joergsteffens
Copy link
Member Author

Extended the PR with changes for the Bareos Universal Linux Client.
Use this PR to include changes done to the bareos.spec also into bareos-universal-client.spec.

Copy link
Contributor

@bruno-at-bareos bruno-at-bareos left a comment

Choose a reason for hiding this comment

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

Great enhancement thanks, approved!

joergsteffens and others added 5 commits December 15, 2025 09:48
As our RPM installation handles some complex update scenarios
it write to an install log file.
On some systems, it is not possible to write log files,
because /var is read-only. Specifically this is the case on immutable
systems like Fedora Silverblue. In that case, we write to stdout.

Fix #2465
`useradd` long parameter for home is --home-dir

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
add some spaces, mostly to be better comparable with
bareos-universal-client.spec.
Try to make bareos.spec and bareos-universal-client.spec s similar as
possible.
@BareosBot BareosBot force-pushed the dev/joergs/rpm-immutable branch from de3e2ed to 6cccf0d Compare December 15, 2025 09:48
@BareosBot BareosBot merged commit b49f193 into master Dec 15, 2025
@BareosBot BareosBot deleted the dev/joergs/rpm-immutable branch December 15, 2025 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rpm installing bareos-filedaemon fails on silverblue

4 participants