#1 fix rt-setup post script on spec file
Opened 2 years ago by ysenda. Modified 2 years ago
rpms/ ysenda/rt-setup c8s  into  c8s

file modified
+2 -2
@@ -47,7 +47,7 @@ 

  %post

  /usr/sbin/groupadd -f -g 71 realtime

  

- if grep kernel.hung_task_panic /etc/sysctl.conf >/dev/null 2>&1

+ if grep kernel.hung_task_panic /etc/sysctl.conf /etc/sysctl.d/* >/dev/null 2>&1

  then

  	:

  else
@@ -60,7 +60,7 @@ 

  EOF

  fi

  

- if grep kernel.hung_task_timeout_secs /etc/sysctl.conf >/dev/null 2>&1

+ if grep kernel.hung_task_timeout_secs /etc/sysctl.conf /etc/sysctl.d/* >/dev/null 2>&1

  then

  	:

  else

rt-setup overwrites "kernel.hung_task_panic" and "kernel.hung_task_timeout_secs" values even if those values are already set.
https://bugzilla.redhat.com/show_bug.cgi?id=2168478

Metadata