From 46ebb1b352667ca92d99d28bda99cb1eb2a08854 Mon Sep 17 00:00:00 2001 From: Mikhail Sandakov Date: Fri, 10 Jan 2025 15:38:22 +0200 Subject: [PATCH] Add grub configurations into feedback archive --- cloudlinux7to8/upgrader.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cloudlinux7to8/upgrader.py b/cloudlinux7to8/upgrader.py index 4393395..fe78c31 100644 --- a/cloudlinux7to8/upgrader.py +++ b/cloudlinux7to8/upgrader.py @@ -83,8 +83,12 @@ def prepare_feedback( "/var/log/leapp/leapp-report.txt", "/var/log/leapp/leapp-preupgrade.log", "/var/log/leapp/leapp-upgrade.log", + "/etc/grub2.cfg", ] + for grub_directory in ("/etc/grub.d", "/boot/grub", "/boot/grub2"): + feed.attached_files += files.find_files_case_insensitive(grub_directory, ["*"]) + for repofile in files.find_files_case_insensitive("/etc/yum.repos.d", ["*.repo*"]): feed.attached_files.append(repofile)