Blame SOURCES/0027-Fix-systemd-version-detection.patch

a1c519
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
a1c519
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
a1c519
Date: Tue, 26 Mar 2019 16:34:32 -0500
a1c519
Subject: [PATCH] Fix systemd version detection
a1c519
a1c519
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
a1c519
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
a1c519
---
a1c519
 Makefile.inc | 2 +-
a1c519
 1 file changed, 1 insertion(+), 1 deletion(-)
a1c519
a1c519
diff --git a/Makefile.inc b/Makefile.inc
a1c519
index b98800a..da49852 100644
a1c519
--- a/Makefile.inc
a1c519
+++ b/Makefile.inc
a1c519
@@ -37,7 +37,7 @@ endif
a1c519
 
a1c519
 ifndef SYSTEMD
a1c519
 	ifeq ($(shell systemctl --version > /dev/null 2>&1 && echo 1), 1)
a1c519
-		SYSTEMD = $(shell systemctl --version 2> /dev/null |  sed -n 's/systemd \([0-9]*\)/\1/p')
a1c519
+		SYSTEMD = $(shell systemctl --version 2> /dev/null |  sed -n 's/systemd \([0-9]*\).*/\1/p')
a1c519
 	endif
a1c519
 endif
a1c519
 
a1c519
-- 
a1c519
2.17.2
a1c519