Print the systemd version in a format that dracut likes

- systemd 240-63-g4199f68+
+ systemd 240 (240-63-g4199f68+)

Sad, but easy.

Fixes #11330.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-01-06 13:57:31 +01:00
committed by Lennart Poettering
parent 2004fce186
commit f1028f5766
+1 -1
View File
@@ -557,7 +557,7 @@ uint64_t system_tasks_max_scale(uint64_t v, uint64_t max) {
}
int version(void) {
puts("systemd " GIT_VERSION "\n"
puts("systemd " STRINGIFY(PROJECT_VERSION) " (" GIT_VERSION ")\n"
SYSTEMD_FEATURES);
return 0;
}