Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

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 <[email protected]>
@arighi arighi merged commit d359e95 into arighi:main Nov 18, 2023
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants