- Require leapp-framework 6.0+ - Update leapp-deps package to satisfy leapp-framework-dependencies 6 - Add dependency on libdb-utils - Enable upgrade for systems with LUKS bound to Clevis with TPM 2.0 token - Adjust resource limitations for leapp to be able to perform the upgrade - Cap max size of the sparse files to 1TiB for storage with large amount of free space - Check that detected Intel CPU microarchitecture is supported on target system - Fix the report when handling broken parsing of kernel cmdline - Generate proper error message instead of ModelViolationError when parsing invalid repository definition - Handle default kernel cmdline when multiple boot entries for the default kernel are defined - Migrate Ruby IRB during the upgrade - Migrate pam_userdb backend during the upgrade - Skip checking of (PKI) `directory-hash` dir to speedup the upgrade process and clean logs - Update leapp upgrade data files - Resolves: RHEL-57043
44 lines
2.1 KiB
Diff
44 lines
2.1 KiB
Diff
From 41e32e3aa6394b8397bef9b797892d9fa119d608 Mon Sep 17 00:00:00 2001
|
|
From: Yuriy Kohut <yura.kohut@gmail.com>
|
|
Date: Thu, 29 Aug 2024 12:36:23 +0300
|
|
Subject: [PATCH 06/40] ReadOfKernelArgsError: fix the error: - AttributeError:
|
|
module 'leapp.reporting' has no attribute 'Hints'
|
|
|
|
---
|
|
.../kernelcmdlineconfig/libraries/kernelcmdlineconfig.py | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/repos/system_upgrade/common/actors/kernelcmdlineconfig/libraries/kernelcmdlineconfig.py b/repos/system_upgrade/common/actors/kernelcmdlineconfig/libraries/kernelcmdlineconfig.py
|
|
index 238a8aa6..6b261c3b 100644
|
|
--- a/repos/system_upgrade/common/actors/kernelcmdlineconfig/libraries/kernelcmdlineconfig.py
|
|
+++ b/repos/system_upgrade/common/actors/kernelcmdlineconfig/libraries/kernelcmdlineconfig.py
|
|
@@ -175,14 +175,14 @@ def entrypoint(configs=None):
|
|
api.current_logger().error(str(e))
|
|
|
|
if use_cmdline_file():
|
|
- report_hint = reporting.Hints(
|
|
+ report_hint = (
|
|
'After the system has been rebooted into the new version of RHEL, you'
|
|
' should take the kernel cmdline arguments from /proc/cmdline (Everything'
|
|
' except the BOOT_IMAGE entry and initrd entries) and copy them into'
|
|
' /etc/kernel/cmdline before installing any new kernels.'
|
|
)
|
|
else:
|
|
- report_hint = reporting.Hints(
|
|
+ report_hint = (
|
|
'After the system has been rebooted into the new version of RHEL, you'
|
|
' should take the kernel cmdline arguments from /proc/cmdline (Everything'
|
|
' except the BOOT_IMAGE entry and initrd entries) and then use the'
|
|
@@ -204,7 +204,7 @@ def entrypoint(configs=None):
|
|
' not able to set the arguments as the default for kernels installed in'
|
|
' the future.'
|
|
),
|
|
- report_hint,
|
|
+ reporting.Remediation(hint=report_hint),
|
|
reporting.Severity(reporting.Severity.HIGH),
|
|
reporting.Groups([
|
|
reporting.Groups.BOOT,
|
|
--
|
|
2.47.0
|
|
|