From 586b61773a7781c3eb3fa8f002b227b456926031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= Date: Fri, 18 May 2018 15:42:35 +0200 Subject: [PATCH] Use symlinks in /etc/ to access GRUB2 config files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can now be more sure that we won't modify another operating system's config file. Related: rhbz#1556990 Signed-off-by: Ondřej Lysoněk --- tuned/consts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/consts.py b/tuned/consts.py index ec75eba..d81b69b 100644 --- a/tuned/consts.py +++ b/tuned/consts.py @@ -21,7 +21,7 @@ ERROR_THRESHOLD = 3 # bootloader plugin configuration BOOT_DIR = "/boot" -GRUB2_CFG_FILES = ["/boot/grub2/grub.cfg", "/boot/efi/EFI/redhat/grub.cfg", "/boot/efi/EFI/fedora/grub.cfg", "/boot/efi/EFI/centos/grub.cfg"] +GRUB2_CFG_FILES = ["/etc/grub2.cfg", "/etc/grub2-efi.cfg"] GRUB2_CFG_DIR = "/etc/grub.d" GRUB2_TUNED_TEMPLATE_NAME = "00_tuned" GRUB2_TUNED_TEMPLATE_PATH = GRUB2_CFG_DIR + "/" + GRUB2_TUNED_TEMPLATE_NAME