Kyale, Eliud 7ae69ae95f Move sysctl.conf to /etc/sysctl.d/98-sysctl.conf
- 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>
2026-01-27 11:29:09 -05:00
2019-09-09 14:10:43 -05:00
2023-04-28 12:38:50 -04:00
2019-09-09 14:10:43 -05:00
2019-09-09 14:10:43 -05:00
2019-09-09 14:10:43 -05:00
2022-12-26 22:05:06 +00:00
Description
StarlingX System Configuration Files
4.6 MiB
Languages
Shell 87.7%
Makefile 8.5%
PHP 2%
Python 1.6%
DTrace 0.2%