Skip to content

Commit

Permalink
Merge pull request #66 from plesk/grub-configs-in-feedback
Browse files Browse the repository at this point in the history
Add grub configurations into feedback archive
  • Loading branch information
SandakovMM authored Jan 10, 2025
2 parents 3f6ae3a + 46ebb1b commit 6bfa1db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloudlinux7to8/upgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6bfa1db

Please sign in to comment.