- Moved default sysctl settings
/etc/sysctl.conf -> /etc/sysctl.d/98-sysctl.conf
- Create an empty /etc/sysctl.conf file
- Update postinst script to also copy empty sysctl.conf to
/usr/share/starlingx/usm/etc/sysctl.conf for upgrade replacement
Rationale:
Sysctl config files are loaded in lexicographical order.
By placing the default sysctl settings in /etc/sysctl.d/98-sysctl.conf
and creating an empty /etc/sysctl.conf file, we provide a clear
mechanism to allow for easier overrides by custom user settings in
/etc/sysctl.d/zzz-custom-user.conf
Test plan:
To verify kernel runtime values check:
- sysctl --system --dry-run to confirm loading order
- sysctl -a
- Default sysctl config file should be empty: /etc/sysctl.conf
- Sysctl config files in /etc/sysctl.d/* and /usr/lib/sysctl.d/*
- Check content of /proc/sys/
PASS - AIO-SX: iso install
Verify /etc/sysctl.d/98-sysctl.conf has valid contents
Verify /etc/sysctl.conf is empty
PASS - AIO-SX: upgrade/rollback [previous major release <-> current]
Verify /etc/sysctl.d/98-sysctl.conf has valid contents
Verify /etc/sysctl.conf is empty
Verify /usr/share/starlingx/usm/etc/sysctl.conf
Story: 2011583
Task: 53672
Change-Id: I0abdda01921ab34532607537642a60924beb24ae
Signed-off-by: Kyale, Eliud <Eliud.Kyale@windriver.com>
Description
StarlingX System Configuration Files
Languages
Shell
87.7%
Makefile
8.5%
PHP
2%
Python
1.6%
DTrace
0.2%