ysenda / rpms / rt-setup

Forked from rpms/rt-setup a year ago
Clone

Blame SPECS/rt-setup.spec

602915
Name: rt-setup
602915
Version: 2.0
602915
Release: 9%{?dist}
602915
License: GPL+
602915
Summary: Setup RHEL-RT environment details
602915
Group: System Environment/Base
602915
Source: rt-setup-%{version}.1.tar.bz2
602915
602915
ExclusiveArch: x86_64
602915
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
602915
BuildRequires: gcc
602915
BuildRequires: systemd
602915
Requires: pam >= 0.99.6.2-3.26
602915
Requires: /usr/sbin/groupadd
602915
Requires: kexec-tools
602915
Requires: tuna
602915
Requires: tuned
602915
Requires: tuned-profiles-realtime
602915
Requires: systemd
602915
602915
%global debug_package %{nil}
602915
602915
%description
602915
The 'rt-setup' package configures details required by RHEL-RT environment.
602915
  - creates realtime group
602915
  - adds realtime limits configuration for PAM
602915
  - adds /usr/bin/rt-setup-kdump to config kdump in RT
602915
  - adds udev specific rules for threaded irqs and /dev/rtc access
602915
  - adds /usr/bin/slub_cpu_partial_off to turn off cpu_partials in SLUB
602915
  - adds net-socket timestamp static key daemon (rt-entsk)
602915
602915
%prep
602915
%setup
602915
602915
%build
602915
make all
602915
602915
%install
602915
rm -Rf %{buildroot}
602915
make DEST=%{buildroot} install
602915
602915
%post
602915
/usr/sbin/groupadd -f -g 71 realtime
602915
602915
if grep kernel.hung_task_panic /etc/sysctl.conf >/dev/null 2>&1
602915
then
602915
	:
602915
else
602915
	sysctl -w kernel.hung_task_panic=0 >/dev/null 2>&1
602915
	cat <<EOF >>/etc/sysctl.conf
602915
# controls whether the system should reboot if it detects a hung task
602915
# 1 means reboot after hung_task_timeout_secs after a hung task is detected
602915
# default value is 0
602915
kernel.hung_task_panic = 0
602915
EOF
602915
fi
602915
602915
if grep kernel.hung_task_timeout_secs /etc/sysctl.conf >/dev/null 2>&1
602915
then
602915
	:
602915
else
602915
	sysctl -w kernel.hung_task_timeout_secs=600 >/dev/null 2>&1
602915
	cat <<EOF >>/etc/sysctl.conf
602915
# controls how long to reboot after a hung task is detected
602915
# default is 600 seconds.
602915
# note: this only matters if kernel.hung_task_panic=1
602915
kernel.hung_task_timeout_secs = 600
602915
EOF
602915
fi
602915
602915
# turn on the rt-setup startup file
602915
systemctl enable rt-setup
602915
602915
%preun
602915
if [ "$1" = "0" ] ; then # uninstall
602915
systemctl disable rt-setup
602915
fi
602915
602915
%clean
602915
rm -rf %{buildroot}
602915
602915
%files
602915
%defattr(0644,root,root,0755)
602915
%config(noreplace) %{_sysconfdir}/security/limits.d/realtime.conf
602915
%config(noreplace) %{_sysconfdir}/udev/rules.d/99-rhel-rt.rules
602915
%config(noreplace) %{_sysconfdir}/sysconfig/rt-setup
602915
%attr(0755, root, root) %{_bindir}/rt-setup-kdump
602915
%attr(0755, root, root) %{_bindir}/slub_cpu_partial_off
602915
%attr(0755, root, root) %{_sbindir}/rt-entsk
602915
%attr(0755, root, root) %{_sbindir}/kernel-is-rt
602915
%attr(0644, root, root) %{_unitdir}/rt-setup.service
602915
%attr(0755, root, root) %{_bindir}/rt-setup
602915
%attr(0644, root, root) %{_unitdir}/rt-entsk.service
602915
602915
%changelog
602915
* Tue Jun 18 2019 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 2.0.9
602915
- repackage rt-entsk changes [1720202]
602915
Resolves: rhbz#1720202
602915
602915
* Mon Jun 17 2019 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 2.0.8
602915
- adjust the parameters for rt-entsk systemd unit [1720202]
602915
Resolves: rhbz#1720202
602915
602915
* Thu Jun 13 2019 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 2.0.7
602915
- adjust the parameters for rt-entsk systemd unit [1720202]
602915
Resolves: rhbz#1720202
602915
602915
* Fri Aug 24 2018 Clark Williams <williams@redhat.com> 2.0.6
602915
- check return value of open in rt-entsk to keep coverity happy
602915
Resolves: rhbz#1616038
602915
602915
* Fri Aug 24 2018 Clark Williams <williams@redhat.com> 2.0.5
602915
- move pid-file write to after we daemonize rt-entask
602915
Resolves: rhbz#1616038
602915
602915
* Wed Aug 22 2018 Clark Williams <williams@redhat.com> 2.0.4
602915
- add logic to write a pid file in rt-entsk (keep systemd happy)
602915
Resolves: rhbz#1616038
602915
602915
* Wed Aug 22 2018 Clark Williams <williams@redhat.com> 2.0.3
602915
- fix errors with rt-entsk installation
602915
Resolves: rhbz#1616038
602915
602915
* Wed Aug 22 2018 Clark Williams <williams@redhat.com> 2.0.2
602915
- fix installation of rt-entsk
602915
Resolves: rhbz#1616038
602915
602915
* Mon Aug 20 2018 Clark Williams <williams@redhat.com> 2.0.1
602915
- build for RHEL 8.0.0
602915
- add rt-entsk program for forcing network timestamps enabled
602915
Resolves: rhbz#1616038
602915
602915
* Wed Aug 08 2018 Clark Williams <williams@redhat.com> 1.59-8
602915
- remove libcgroup requirement
602915
- remove comment about irqbalance
602915
602915
* Fri Jun 01 2018 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 1.59-7
602915
- rt-setup no longer rrequires rtctl (1585198)
602915
Resolves: rhbz#1585198
602915
602915
* Tue Jul 05 2016 John Kacur <jkacur@redhat.com> - 1.59-5
602915
- Rebuild for rhel-7.3
602915
Resolves: rhbz#1341783
602915
602915
* Tue Jun 14 2016 John Kacur <jkacur@redhat.com> - 1.59-3
602915
- Fix some spelling mistakes in the comments in rhel-rt.rules
602915
- Add udev rules to allow the realtime group to access msr and cpuid registers
602915
Resolves: rhbz#1341783
602915
602915
* Fri Jul 10 2015 Clark Williams <williams@redhat.com> - 1.59-2
602915
- removed post-install script that disables irqbalance (1203764)
602915
- fixed typo in requires for tuned-profiles-realtime (1241936)
602915
602915
* Thu Jul  2 2015 Clark Williams <williams@redhat.com> - 1.59-1
602915
- added tuned and tuna dependencies, removed sqlite  (1203764)
602915
602915
* Mon Dec 29 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.58-2
602915
- fixed rt-setup shell script called on startup (1162769)
602915
- removed the unnecessary mrg-rt-firmware logic (1162769)
602915
602915
* Fri Dec 26 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.58-1
602915
- make startup logic work with systemd (1162769)
602915
- product name cleanup (1173312)
602915
602915
* Fri Nov 28 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-6
602915
- remove a reference to mrg-rt-release from initscript (1162766)
602915
602915
* Mon Nov 24 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-5
602915
- move kernel-is-rt from /sbin to /usr/sbin (1151563)
602915
602915
* Tue Nov 18 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-4
602915
- remove the database used by mrg-rt-release (1162766)
602915
602915
* Tue Nov 11 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-3
602915
- remove mrg-rt-release (1162766)
602915
602915
* Tue Nov 04 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.57-2
602915
- remove the old dracut rules from RHEL6 (1160440)
602915
602915
* Wed Oct 29 2014 Clark Williams <williams@redhat.com> - 1.57-1
602915
- added mrg-2.5.8 release to mrg-rt-release database
602915
602915
* Tue Sep 30 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.56-2
602915
- added mrg-2.5.7 release to mrg-rt-release database
602915
602915
* Wed Aug 20 2014 Clark Williams <williams@redhat.com> - 1.56-1
602915
- added mrg-2.5.6 release to mrg-rt-release database
602915
- removed dracut rule that caused problems when adding firmware to initramfs
602915
602915
* Fri Jul 25 2014 Clark Williams <williams@redhat.com> - 1.55-8
602915
- added mrg-2.5.2 and mrg-2.5.4 releases to mrg-rt-release database
602915
602915
* Tue Jun 10 2014 John Kacur <jkacur@redhat.com> - 1.55-7
602915
- udev: Add udev rule to give group realtime write access to cpu_dma_latency
602915
602915
* Mon Apr 28 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-6
602915
- Added mrg-2.5 GA data to the mrg-rt-release database
602915
602915
* Wed Apr 09 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-5
602915
- Added mrg-2.4.6 data to the mrg-rt-release database
602915
602915
* Fri Mar 28 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-4
602915
- Trim the kernel version when read from uname -rt
602915
602915
* Tue Feb 18 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-3
602915
- Added mrg-2.4.5 data to the mrg-rt-release database
602915
602915
* Wed Jan 22 2014 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.55-2
602915
- Added mrg-2.4.3 data to the mrg-rt-release database
602915
602915
* Tue Dec 10 2013 Clark Williams <williams@redhat.com> - 1.55-1
602915
- First common build for RHEL7 and RHEL6
602915
602915
* Thu Nov 28 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 1.54-2
602915
- Enhanced update-mrg-rt-release
602915
602915
* Thu Nov 28 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> 1.54-1
602915
- Update mrg-rt-release on every boot [848433]
602915
602915
* Thu Aug 29 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.53-4
602915
- add /lib/firmware/$(uname -r) to dracut firmware search path (998920)
602915
- ensure rt-firmware files are on udev firmware search path (998920)
602915
602915
* Thu Aug 22 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.53-3
602915
- removed the dracut config file
602915
602915
* Tue Aug 20 2013 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.53-2
602915
- added configuration file for dracut (998920)
602915
- fixed macro usage on the specfile
602915
602915
* Thu Apr  25 2013 Clark Williams <williams@redhat.com> - 1.53-1
602915
- turn off cgroup mounting logic
602915
- added Requires for libcgroup
602915
602915
* Tue Apr   2 2013 Clark Williams <williams@redhat.com> - 1.52-1
602915
- added script slub_cpu_partial_off
602915
- added cgroups to /etc/sysconfig/rt-setup
602915
602915
* Wed Mar  27 2013 Clark Williams <williams@redhat.com> - 1.51-1
602915
- added code to turn off SLUB cpu_partial at startup
602915
602915
* Mon Nov  12 2012 Luis Claudio R. Goncalves  <lgoncalv@redhat.com> - 1.50-1
602915
- rt-setup-kdump: use mrg-2.x as the kdump kernel [868446] [868442] [868329]
602915
- rt-setup-kdump: simplified the script and added --rhel option
602915
602915
* Tue Mar   6 2012 Clark Williams <williams@redhat.com> - 1.11-1
602915
- removed %%post logic that disables bandwidth limiting [BZ# 791371]
602915
- changed rtprio from 100 to 99 in realtime.conf
602915
602915
* Thu Oct  13 2011 Clark Williams <williams@redhat.com> - 1.10-1
602915
- fixed thinko by removing firmware download logic
602915
602915
* Tue Oct  11 2011 Clark Williams <williams@redhat.com> - 1.9-1
602915
- added sysconfig and init script for handling cgroup mounting
602915
- changed script kernel-is-rt to use /sys/kernel/realtime
602915
602915
* Wed May 11 2011 Clark Williams <williams@redhat.com> - 1.8-1
602915
- simplified mrg-rt-firmware.rules to fix boot time hang on
602915
  large core machines (BZ# 698481)
602915
602915
* Fri Feb 11 2011 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.7-4
602915
- Normalized the RHEL6 firmware path search (due to uname -r changes)
602915
602915
* Thu May 27 2010 John Kacur <jkacur@redhat.com> - 1.7-2
602915
- set kernel.hung_task_panic=0 (off) by default
602915
- set kernel.hung_task_timeout_secs=600 by default
602915
- used sysctl to set sched_rt_runtime_us at install time, not just boot time
602915
602915
* Tue May 18 2010 Clark Williams <williams@redhat.com> - 1.7-1
602915
- removed requirement for kernel-rt (circular dependency)
602915
- cleaned up mrg-rt-firmware.rules (added commas between all key/value pairs)
602915
602915
* Wed Nov 25 2009 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.6-3
602915
- rt-setup-kdump: configure kdump on all MRG kernel flavors
602915
- rt-setup-kdump: fix a log entry that was too verbose
602915
602915
* Wed Nov 25 2009 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.6-2
602915
- rt-setup-kdump treats MRG v1 and v2 kernels accordingly (BZ# 517529)
602915
602915
* Mon Nov  2 2009 Clark Williams <williams@redhat.com> - 1.6-1
602915
- removed "@16" specifier from rt-setup-kdump script (BZ# 517529)
602915
602915
* Tue Sep  1 2009 Clark Williams <williams@redhat.com> - 1.5-2
602915
- fixed path mismatches reported by Vernon Maury
602915
602915
* Wed Aug 26 2009 Clark Williams <williams@redhat.com> - 1.5-1
602915
- add udev rules and scripts for handling driver firmware download
602915
602915
* Thu Jul  9 2009 Clark Williams <williams@redhat.com> - 1.4-1
602915
- blow away rtctl udev rule (compatibility problem with RHEL
602915
  version of udev)
602915
- update /dev/rtc udev rule to use PROGRAM rather than SYMLINK
602915
602915
* Tue Jul  7 2009 Clark Williams <williams@redhat.com> - 1.3-1
602915
- added udev rules file to address:
602915
 - BZ 510121 hwclock & /dev/rtc broken in rt-kernel
602915
 - BZ 466929 udev rule for hotplug rtctl
602915
602915
* Thu May 21 2009 Clark Williams <williams@redhat.com> - 1.2-1
602915
- added post section to edit /etc/sysctl.conf and add the
602915
  kernel.sched_rt_runtime_us parameter = -1 line to disable
602915
  the RT scheduler bandwith limiter
602915
602915
* Tue Jul 15 2008 Clark Williams <williams@redhat.com> - 1.1-6%{dist}
602915
- fixed rt-setup-kdump to handle incorrect arguments (BZ 455536)
602915
- added help argument to rt-setup-kdump
602915
602915
* Fri Jun 13 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.1-5%{dist}
602915
- rt-setup-kdump now touches /etc/grub.conf only when requested
602915
602915
* Tue Jun 03 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.1-4%{dist}
602915
- /usr/bin/rt-setup-kdump had wrong permissions
602915
- changed rt-setup-kdump: added a few tests for reserved memory and for the
602915
  absence of /etc/sysconfig/kdump
602915
- now rt-setup requires kexec-tools
602915
602915
* Mon May 12 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.1-3%{dist}
602915
- disables irqbalance as it may hurt determinism in RT
602915
- installs rt-setup-kdump in /usr/bin
602915
602915
* Tue Apr 22 2008 Clark Williams <williams@redhat.com> - 1.1-2%{?dist}
602915
- removed sed script to edit kdump config file (using updated
602915
  kexec-tools instead)
602915
602915
* Mon Apr 21 2008 Clark Williams <williams@redhat.com> - 1.1-1%{?dist}
602915
- removed --args-linux from /etc/sysconfig/kdump (BZ# 432378)
602915
- changed BuildArch to noarch
602915
602915
* Thu Feb 07 2008 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.0-3%{?dist}
602915
- BZ:399591 - Fixed spec issues pointed by Jeremy Katz
602915
- BZ:399591 - @realtime has gid=71.
602915
- FIXES: BZ399591
602915
602915
* Thu Aug 02 2007 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.0-2%{?dist}
602915
- Fixed package description
602915
602915
* Mon Jul 30 2007 Luis Claudio R. Goncalves <lgoncalv@redhat.com> - 1.0-1%{?dist}
602915
- Initial packaging
602915
- Requires all the basic packages for RT
602915
- Requires support for limits.d and no realtime.conf present in PAM package