Skip to content

Commit a1ebf80

Browse files
committed
el_script: Tuned profile directory changed in recent tuned versions
1 parent f8a0d9e commit a1ebf80

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

el_configurator.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Works with Debian 13, although atm no scap profile is available as of 27-08-2025
77
# Works with Ubuntu 22.04 tls, although scap support needs to be disabled as of 16-12-2025
88

9-
SCRIPT_BUILD="2026010701"
9+
SCRIPT_BUILD="2026011501"
1010

1111
# Note that all variables can be overridden by kernel arguments
1212
# Example: Override BRAND_NAME with kernel argument: NPF_BRAND_NAME=MyBrand
@@ -1637,7 +1637,10 @@ EOF
16371637
if [ "${CONFIGURE_TUNED}" != false ]; then
16381638
log "Setting up tuned profiles"
16391639

1640-
if [ "${RELEASE}" -eq 10 ]; then
1640+
# RHEL 10 as well as Debian 13 use /etc/tuned/profiles whareas RHEL 8 and 9 use /etc/tuned as profile directory
1641+
if [ "${FLAVOR}" = "rhel" ] && [ "${RELEASE}" -ge 10 ]; then
1642+
TUNED_DIR=/etc/tuned/profiles
1643+
elif [ "${FLAVOR}" = "debian" ] && [ "${RELEASE}" -ge 13 ]; then
16411644
TUNED_DIR=/etc/tuned/profiles
16421645
else
16431646
TUNED_DIR=/etc/tuned

0 commit comments

Comments
 (0)