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

Distro generalization #1

Merged
merged 2 commits into from
Nov 18, 2023
Merged

Distro generalization #1

merged 2 commits into from
Nov 18, 2023

Conversation

zevweiss
Copy link
Contributor

@zevweiss zevweiss commented Nov 18, 2023

A couple small tweaks to be a bit more distro-agnostic...

  • Many of the paths virtme-ng-init tries to mount are distro-specific and may legitimately not exist; reduce the log noise by only logging mount failures for reasons other than ENOENT.

  • Don't try to run systemd-tmpfiles on non-systemd systems (not sure offhand if there's a better way of testing for systemd's presence than just looking for /etc/systemd, but that's what I've done at the moment anyhow).

@zevweiss zevweiss changed the title utils: Don't log mount failures due to ENOENT Distro generalization Nov 18, 2023
@arighi
Copy link
Owner

arighi commented Nov 18, 2023

@zevweiss I like these changes, there's a minor nitpick found by the format check, with that fixed I'll be happy to merge, thanks!

Many of the paths virtme-ng-init tries to mount are distro-specific
and may legitimately not exist; reduce the log noise by only logging
mount failures for reasons other than ENOENT.

Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
@arighi arighi merged commit d359e95 into arighi:main Nov 18, 2023
1 check passed
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.

2 participants