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

Ignore (bogus?) warnings about removed systemd unit files being changed on disk and needing to be reloaded #63

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion mini-tps.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Name: mini-tps
Version: 0.1
Release: 179%{?dist}
Release: 180%{?dist}
Summary: Mini TPS - Test Package Sanity

License: GPLv2
Expand Down Expand Up @@ -73,6 +73,9 @@ install -pD -m 0755 profiles/fedora/prepare-system %{buildroot}%{_libexecdir}/mi


%changelog
* Mon Jul 1 2024 Michal Srb <[email protected]> - 0.1-180
- Temporarily ignore warnings about removed systemd unit files being changed on disk

* Tue Jun 18 2024 Jiri Popelka <[email protected]> - 0.1-179
- Use dnf5 if installed

Expand Down
4 changes: 4 additions & 0 deletions mtps-pkg-test
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ run_with_scriptlet_check() {
# Ignore warning about UID being outside of the SYS_UID_MIN/SYS_UID_MAX range.
# This is a "known unfixable". See comments in OSCI-4825 for more information.
grep -P -v -i 'useradd warning: [^ ]+ uid [0-9]+ outside of the SYS_UID_MIN [0-9]+ and SYS_UID_MAX [0-9]+ range\.' "$output_part" > "${output_part}-filtered" && mv "${output_part}-filtered" "$output_part"
# Ignore (bogus?) warnings about removed systemd unit files being changed on disk and needing to be reloaded.
# This seems to be a bug in systemd(?): https://github.com/systemd/systemd/issues/32959
# TODO: Remove this once systemd gets updated and the problem is no longer present
grep -P -v -i "warning: the unit file, source configuration file or drop-ins of .* changed on disk\. run 'systemctl daemon-reload' to reload units\." "$output_part" > "${output_part}-filtered" && mv "${output_part}-filtered" "$output_part"

# We only look for the following problematic words (case-insensitive):
# * error
Expand Down