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

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