Quadlets can be debugged with systemd-analyze --generators=true verify example.service
(an alternative to podman-system-generator -dryrun
)
#24891
eriksjolund
started this conversation in
General
Replies: 2 comments 1 reply
-
Thanks for sharing and kicking off a discussion, @eriksjolund! I think we should add all this information to the man pages. @ygalblum WDYT? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I don't mind adding this to the documentation. Just keep in mind that it is useful only when Quadlet fails to convert the unit file, for example when the key is incorrect. It will not help you if the issue is with the values themselves (for example typo in the image name). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have two files my1.container and my2.container. The first one contains a syntax error (the key
jImage
)/var/home/test/.config/containers/systemd/my1.container
/var/home/test/.config/containers/systemd/my2.container
Test 1
Test 2
Discussion
The command
seems to be more user-friendly because it just prints the error messages.
It is possible to achieve a similar result by adding
> /dev/null
(Some additional lines containing
Loading source unit file
are also listed)Side note 1: I verified that it is possible to analyse a quadlets in a custom directory path with
Side note 2:
The command systemd-analyze verify performs additional checks on
the generated service unit. (See https://www.man7.org/linux/man-pages/man1/systemd-analyze.1.html)
Beta Was this translation helpful? Give feedback.
All reactions