Skip to content

Commit

Permalink
add patch: path to grub config
Browse files Browse the repository at this point in the history
This change is already a PR: redhat-performance#387

Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
  • Loading branch information
adriaan42 committed Oct 5, 2022
1 parent 65d825c commit 77f2a9e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tuned (2.19.0-1) UNRELEASED; urgency=medium
* also use libexec paths when installing files

[ Adriaan Schmidt ]
*
* add patch: path to grub config

-- Adriaan Schmidt <adriaan.schmidt@siemens.com> Tue, 04 Oct 2022 16:08:36 +0200

Expand Down
25 changes: 25 additions & 0 deletions debian/patches/path-to-grub.cfg.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 6768dc5befacf4c05846157a2927a54ee5e48ac5 Mon Sep 17 00:00:00 2001
From: Adriaan Schmidt <adriaan.schmidt@siemens.com>
Date: Thu, 10 Mar 2022 08:19:36 +0000
Subject: [PATCH] debian: path to grub.cfg

---
tuned/consts.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tuned/consts.py b/tuned/consts.py
index 06e7cac..d8d35bb 100644
--- a/tuned/consts.py
+++ b/tuned/consts.py
@@ -26,7 +26,7 @@ ERROR_THRESHOLD = 3

# bootloader plugin configuration
BOOT_DIR = "/boot"
-GRUB2_CFG_FILES = ["/etc/grub2.cfg", "/etc/grub2-efi.cfg"]
+GRUB2_CFG_FILES = ["/boot/grub/grub.cfg"]
GRUB2_CFG_DIR = "/etc/grub.d"
GRUB2_TUNED_TEMPLATE_NAME = "00_tuned"
GRUB2_TUNED_TEMPLATE_PATH = GRUB2_CFG_DIR + "/" + GRUB2_TUNED_TEMPLATE_NAME
--
2.35.1

1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
etc-default.patch
explicitly-use-bin-bash-for-tuned-scripts.patch
path-to-grub.cfg.patch

0 comments on commit 77f2a9e

Please sign in to comment.