Zbigniew Jędrzejewski-Szmek
fd03a6a92b
sysext: move extension_release_validate() out of os-util.c
2021-02-22 20:10:55 +01:00
Luca Boccassi
93547f2812
env-util: refactor parsing helper for SYSTEMD_SYSEXT_HIERARCHIES out of sysext
2021-02-17 21:45:31 +00:00
Luca Boccassi
7eda2d7fa5
os-util: split extension_release_validate out of sysext
2021-02-17 21:45:31 +00:00
Zbigniew Jędrzejewski-Szmek
b1e8f46c31
Move and rename parse_json_argument() function
...
json.[ch] is a very generic implementation, and cmdline argument parsing
doesn't fit there.
2021-02-15 08:50:45 +01:00
Zbigniew Jędrzejewski-Szmek
614b022c76
Move and rename parse_path_argument() function
...
This fits better in shared/, and the new parse-argument.c file is a good home
for it.
2021-02-15 08:50:45 +01:00
Yu Watanabe
8087644a13
tree-wide: replace strverscmp() and str_verscmp() with strverscmp_improved()
2021-02-09 14:25:03 +09:00
Zbigniew Jędrzejewski-Szmek
ad22e7cf5c
Merge pull request #18375 from yuwata/cli-tools-also-read-kernel-command-line
...
tree-wide: make CLI tools also read kernel command line when run as service
2021-02-08 11:45:42 +01:00
Lennart Poettering
57f1b61b76
shared: rename machine-image.[ch] → discover-image.[ch]
...
The old name originates when this was used to discover "machine" images,
as managed by machined/machinectl. But nowadays this is also used by
portable services and system extensions, hence let's use a more generic
name for this API. Taking inspiration from "dissect-image.[ch]", let's call
this "discover-image.[ch]".
This is pure renaming, no other changes.
2021-02-03 23:12:57 +01:00
Yu Watanabe
d2acb93dc5
tree-wide: enable colorized logging for daemons when run in console
...
It may be useful when debugging daemons.
2021-02-01 01:13:44 +09:00
Daan De Meyer
bc556335b1
tree-wide: Drop custom formatting for print() help messages
...
I think this formatting was originally used because it simplified
adding new options to the help messages. However, these days, most
tools their help message end with "\nSee the %s for details.\n" so
the final line almost never has to be edited which eliminates the
benefit of the custom formatting used for printf() help messages.
Let's make things more consistent and use the same formatting for
printf() help messages that we use everywhere else.
Prompted by https://github.com/systemd/systemd/pull/18355#discussion_r567241580
2021-01-31 13:14:02 +09:00
Lennart Poettering
16a36b5616
sysext: port to table_print_with_pager()
...
This adds --no-legend as side-effect.
2021-01-21 18:14:21 +01:00
Lennart Poettering
8de42cb461
sysext: add --force swich for forcibly ignoring version incompatibilities
2021-01-20 17:50:23 +01:00
Lennart Poettering
8662fcbcf1
sysext: rework command line interface to be verb-based
...
As suggested by @yuwata:
https://github.com/systemd/systemd/pull/18181#pullrequestreview-570826113
2021-01-20 17:50:23 +01:00
Lennart Poettering
9901835d80
sysext: split version validation logic into function of its own
...
Just some simple refactoring to simplify the logic.
2021-01-20 17:44:53 +01:00
Lennart Poettering
1f3707aeea
sysext: use log_setup_cli()
2021-01-20 17:44:53 +01:00
Luca Boccassi
60bb6caaae
sysext: use parse_extension_release and reject extension if not found
2021-01-19 13:41:42 +01:00
Luca Boccassi
44bb7b0956
sysext: add verity boilerplate
2021-01-19 13:41:42 +01:00
Lennart Poettering
d577d4a432
machine-image: properly support searching for images below some --root= path
...
systemd-sysext supports --root= for everything but the image discovery.
Fix that.
2021-01-19 13:41:42 +01:00
Lennart Poettering
9bca4ae4cd
sysext: new tool for managing "system extensions" for /usr/ + /opt/
2021-01-19 13:41:42 +01:00