Accepting request 69787 from home:jeff_mahoney:branches:Base:System

- boot.sysctl: Add support for loading defaults from
  /boot/sysctl.conf-$(uname -r) before loading /etc/sysctl.conf
  to allow each kernel flavor to adjust defaults without
  different kernel configuration options.

The HEAD kernel has support for generating these files now.

OBS-URL: https://build.opensuse.org/request/show/69787
OBS-URL: https://build.opensuse.org/package/show/Base:System/procps?expand=0&rev=44
This commit is contained in:
Cristian Rodríguez 2011-05-06 14:37:33 +00:00 committed by Git OBS Bridge
parent 7c6703a783
commit da25360fd3
2 changed files with 16 additions and 0 deletions

View File

@ -24,6 +24,14 @@ rc_reset
case "$1" in case "$1" in
start) start)
# Load per-kernel defaults from /boot. This file is provided
# by the kernel package and will be replaced on update.
if test -e "/boot/sysctl.conf-$(uname -r)"; then
echo -n "Loading sysctl defaults from /boot/sysctl.conf-$(uname -r)"
sysctl -e -q -p /boot/sysctl.conf-$(uname -r)
rc_status -v -r
fi
# #
# run sysctl if the config file exists # run sysctl if the config file exists
# otherwise generate it # otherwise generate it

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu May 5 17:49:30 CEST 2011 - jeffm@suse.de
- boot.sysctl: Add support for loading defaults from
/boot/sysctl.conf-$(uname -r) before loading /etc/sysctl.conf
to allow each kernel flavor to adjust defaults without
different kernel configuration options.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 22 17:31:22 UTC 2011 - idoenmez@novell.com Tue Mar 22 17:31:22 UTC 2011 - idoenmez@novell.com