Skip to content

Conversation

@kcgthb
Copy link
Member

@kcgthb kcgthb commented Nov 13, 2025

On modern systems, /etc/sysctl.conf may not exist out of the box, and a /etc/sysctl.d/ directory is used instead.

This PR modifies xcatconfig to create a /etc/sysctl.d/99-xcat.conf file for xCAT tunings when the directory exists, falling back to /etc/sysctl.conf for backward compatibility.

@kcgthb kcgthb force-pushed the fix-sysctl-debian branch 4 times, most recently from fb8a939 to cc85510 Compare November 13, 2025 18:25
On Debian-based systems, /etc/sysctl.conf doesn't exist and
/etc/sysctl.d/ directory is used instead. Modified xcatconfig
to prefer /etc/sysctl.d/99-xcat.conf when the directory exists,
falling back to /etc/sysctl.conf for backward compatibility.
@kcgthb kcgthb changed the title Support /etc/sysctl.d/ for Debian-based systems Support /etc/sysctl.d/ in xcatconfig Nov 13, 2025
@Obihoernchen Obihoernchen self-assigned this Nov 14, 2025
@Obihoernchen Obihoernchen added this to the 2.17.1 milestone Nov 14, 2025
@Obihoernchen Obihoernchen merged commit 62522bc into xcat2:master Nov 14, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants