1
0
Fork 0

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.
This commit is contained in:
Pavol Žáčik 2024-06-19 15:29:03 +02:00
parent bb39823410
commit b3b0892d5b
No known key found for this signature in database
GPG key ID: B99527D5E6487A92
2 changed files with 6 additions and 2 deletions

View file

@ -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