]> git.puffer.fish Git - matthieu/frr.git/commitdiff
redhat: fix previous merge. initsystem detection should now work for mock builds...
authorMartin Winter <mwinter@opensourcerouting.org>
Mon, 22 May 2017 11:04:35 +0000 (04:04 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 6 Jun 2017 18:41:23 +0000 (14:41 -0400)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
redhat/frr.spec.in

index 9b2e188a3af3e33aaeeb575a7e78d525c66c682a..c5e6775f3bbe0ee7bef4d2c26ae844702e23f718 100644 (file)
@@ -50,7 +50,7 @@
 
 #### Check for systemd or init.d (upstart)
 # Check for init.d (upstart) as used in CentOS 6 or systemd (ie CentOS 7)
-%{expand: %%global initsystem %(if [[ `/sbin/init --version 2> /dev/null` =~ upstart ]]; then echo upstart; elif [[ `file /sbin/init` =~ "symbolic link to \`../lib/systemd/systemd'" ]]; then echo systemd; fi)}
+%{expand: %%global initsystem %(if [[ `/sbin/init --version 2> /dev/null` =~ upstart ]]; then echo upstart; elif [[ `file /sbin/init` =~ "symbolic link to \`../lib/systemd/systemd'" ]]; then echo systemd; elif [[ `systemctl` =~ -\.mount ]]; then echo systemd; fi)}
 #
 # If init system is systemd, then always disable watchfrr
 #
@@ -563,6 +563,7 @@ rm -rf %{buildroot}
 * Fri Jan  6 2017 Martin Winter <mwinter@opensourcerouting.org> - %{version}
 * Thu Apr 13 2017 Martin Winter <mwinter@opensourcerouting.org> - %{version}
 * Thu Apr 17 2017 Martin Winter <mwinter@opensourcerouting.org> - %{version}
+* Mon Apr 17 2017 Martin Winter <mwinter@opensourcerouting.org> - %{version}
 - new subpackage frr-pythontools with python 2.7 restart script
 - remove PIMd from CentOS/RedHat 6 RPM packages (won't work - too old)
 - converted to single frr init script (not per daemon) based on debian init script