From b3b0892d5b364680ea5abd320b72f27efc294cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavol=20=C5=BD=C3=A1=C4=8Dik?= Date: Wed, 19 Jun 2024 15:29:03 +0200 Subject: [PATCH] Install script functions and recommend.d to /usr/lib/tuned/ In #615, they were accidentally moved to /usr/lib/tuned/profiles/ where all profiles were migrated. This also changes the location of `functions` file within the repository, separating it from the profiles themselves. Resolves #642. --- Makefile | 8 ++++++-- profiles/functions => functions | 0 2 files changed, 6 insertions(+), 2 deletions(-) rename profiles/functions => functions (100%) diff --git a/Makefile b/Makefile index a8c97839..b81790ba 100644 --- a/Makefile +++ b/Makefile @@ -46,8 +46,9 @@ ifeq ($(PYTHON_SITELIB),) $(error Failed to determine python library directory) endif KERNELINSTALLHOOKDIR = /usr/lib/kernel/install.d -TUNED_PROFILES_DIR = /usr/lib/tuned/profiles -TUNED_RECOMMEND_DIR = $(TUNED_PROFILES_DIR)/recommend.d +TUNED_SYSTEM_DIR = /usr/lib/tuned +TUNED_PROFILES_DIR = $(TUNED_SYSTEM_DIR)/profiles +TUNED_RECOMMEND_DIR = $(TUNED_SYSTEM_DIR)/recommend.d TUNED_USER_RECOMMEND_DIR = $(SYSCONFDIR)/tuned/recommend.d BASH_COMPLETIONS = $(DATADIR)/bash-completion/completions @@ -182,6 +183,9 @@ install: install-dirs $(DESTDIR)$(SYSCONFDIR)/tuned/cpu-partitioning-powersave-variables.conf install -pm 0644 recommend.conf $(DESTDIR)$(TUNED_RECOMMEND_DIR)/50-tuned.conf + # bash functions used by profile scripts + install -Dpm 0644 functions $(DESTDIR)$(TUNED_SYSTEM_DIR) + # bash completion install -Dpm 0644 tuned-adm.bash $(DESTDIR)$(BASH_COMPLETIONS)/tuned-adm diff --git a/profiles/functions b/functions similarity index 100% rename from profiles/functions rename to functions