From f1028f576664744ecc6f9fbb3707879ebf679659 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 4 Jan 2019 15:07:43 +0100 Subject: [PATCH] Print the systemd version in a format that dracut likes - systemd 240-63-g4199f68+ + systemd 240 (240-63-g4199f68+) Sad, but easy. Fixes #11330. --- src/basic/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/util.c b/src/basic/util.c index 96c314e895..e577c93e60 100644 --- a/src/basic/util.c +++ b/src/basic/util.c @@ -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; } -- 2.25.1