From 86bde6b9e454048efdeffab0ff7e640943be1a80 Mon Sep 17 00:00:00 2001 From: Jiri Mencak Date: Mon, 8 Jul 2024 20:38:03 +0200 Subject: [PATCH] Fix requested profile doesn't exist (#1104) Fix requested profile doesn't exist for upstream builds. Upstream `TuneD` now ships system profiles in /usr/lib/tuned/profiles vs /usr/lib/tuned. Co-authored-by: Jiri Mencak --- hack/dockerfile_install_support.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/dockerfile_install_support.sh b/hack/dockerfile_install_support.sh index f3abce3e00..a6f0f9b413 100644 --- a/hack/dockerfile_install_support.sh +++ b/hack/dockerfile_install_support.sh @@ -25,7 +25,7 @@ if [[ "${ID}" == "centos" ]]; then dnf --setopt=tsflags=nodocs -y install /root/rpms/*.rpm rm -rf /etc/tuned/recommend.d echo auto > /etc/tuned/profile_mode - sed -Ei 's|^#?\s*enable_unix_socket\s*=.*$|enable_unix_socket = 1|;s|^#?\s*rollback\s*=.*$|rollback = not_on_exit|;s|^#?\s*profile_dirs\s*=.*$|profile_dirs = /usr/lib/tuned,/var/lib/ocp-tuned/profiles|' /etc/tuned/tuned-main.conf; + sed -Ei 's|^#?\s*enable_unix_socket\s*=.*$|enable_unix_socket = 1|;s|^#?\s*rollback\s*=.*$|rollback = not_on_exit|;s|^#?\s*profile_dirs\s*=.*$|profile_dirs = /usr/lib/tuned/profiles,/usr/lib/tuned,/var/lib/ocp-tuned/profiles|' /etc/tuned/tuned-main.conf; # Clean up build tools to remove image footprint dnf remove --setopt=protected_packages= -y ${BUILD_INSTALL_PKGS} @@ -44,7 +44,7 @@ else dnf install --setopt=tsflags=nodocs -y ${INSTALL_PKGS} rm -rf /etc/tuned/recommend.d echo auto > /etc/tuned/profile_mode - sed -Ei 's|^#?\s*enable_unix_socket\s*=.*$|enable_unix_socket = 1|;s|^#?\s*rollback\s*=.*$|rollback = not_on_exit|;s|^#?\s*profile_dirs\s*=.*$|profile_dirs = /usr/lib/tuned,/var/lib/ocp-tuned/profiles|' /etc/tuned/tuned-main.conf; + sed -Ei 's|^#?\s*enable_unix_socket\s*=.*$|enable_unix_socket = 1|;s|^#?\s*rollback\s*=.*$|rollback = not_on_exit|;s|^#?\s*profile_dirs\s*=.*$|profile_dirs = /usr/lib/tuned/profiles,/usr/lib/tuned,/var/lib/ocp-tuned/profiles|' /etc/tuned/tuned-main.conf; fi