- 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
58 lines
3.0 KiB
Diff
58 lines
3.0 KiB
Diff
From 8e5fe75e4ee76eb62eb51001c28f1f1443f0a563 Mon Sep 17 00:00:00 2001
|
|
From: Petr Stodulka <pstodulk@redhat.com>
|
|
Date: Fri, 18 Oct 2024 07:13:42 +0200
|
|
Subject: [PATCH 21/40] Rename inhibitwhenluks actor to checkluks
|
|
|
|
The actor nowadays does more then just inhibiting the upgrade when
|
|
LUKS is detected. Let's rename it to respect current behaviour.
|
|
---
|
|
.../common/actors/{inhibitwhenluks => checkluks}/actor.py | 6 +++---
|
|
.../inhibitwhenluks.py => checkluks/libraries/checkluks.py} | 0
|
|
.../tests/test_checkluks.py} | 0
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
rename repos/system_upgrade/common/actors/{inhibitwhenluks => checkluks}/actor.py (85%)
|
|
rename repos/system_upgrade/common/actors/{inhibitwhenluks/libraries/inhibitwhenluks.py => checkluks/libraries/checkluks.py} (100%)
|
|
rename repos/system_upgrade/common/actors/{inhibitwhenluks/tests/test_inhibitwhenluks.py => checkluks/tests/test_checkluks.py} (100%)
|
|
|
|
diff --git a/repos/system_upgrade/common/actors/inhibitwhenluks/actor.py b/repos/system_upgrade/common/actors/checkluks/actor.py
|
|
similarity index 85%
|
|
rename from repos/system_upgrade/common/actors/inhibitwhenluks/actor.py
|
|
rename to repos/system_upgrade/common/actors/checkluks/actor.py
|
|
index 65607167..607fd040 100644
|
|
--- a/repos/system_upgrade/common/actors/inhibitwhenluks/actor.py
|
|
+++ b/repos/system_upgrade/common/actors/checkluks/actor.py
|
|
@@ -1,11 +1,11 @@
|
|
from leapp.actors import Actor
|
|
-from leapp.libraries.actor.inhibitwhenluks import check_invalid_luks_devices
|
|
+from leapp.libraries.actor.checkluks import check_invalid_luks_devices
|
|
from leapp.models import CephInfo, LuksDumps, StorageInfo, TargetUserSpaceUpgradeTasks, UpgradeInitramfsTasks
|
|
from leapp.reporting import Report
|
|
from leapp.tags import ChecksPhaseTag, IPUWorkflowTag
|
|
|
|
|
|
-class InhibitWhenLuks(Actor):
|
|
+class CheckLuks(Actor):
|
|
"""
|
|
Check if any encrypted partitions are in use and whether they are supported for the upgrade.
|
|
|
|
@@ -15,7 +15,7 @@ class InhibitWhenLuks(Actor):
|
|
during the process).
|
|
"""
|
|
|
|
- name = 'check_luks_and_inhibit'
|
|
+ name = 'check_luks'
|
|
consumes = (CephInfo, LuksDumps, StorageInfo)
|
|
produces = (Report, TargetUserSpaceUpgradeTasks, UpgradeInitramfsTasks)
|
|
tags = (ChecksPhaseTag, IPUWorkflowTag)
|
|
diff --git a/repos/system_upgrade/common/actors/inhibitwhenluks/libraries/inhibitwhenluks.py b/repos/system_upgrade/common/actors/checkluks/libraries/checkluks.py
|
|
similarity index 100%
|
|
rename from repos/system_upgrade/common/actors/inhibitwhenluks/libraries/inhibitwhenluks.py
|
|
rename to repos/system_upgrade/common/actors/checkluks/libraries/checkluks.py
|
|
diff --git a/repos/system_upgrade/common/actors/inhibitwhenluks/tests/test_inhibitwhenluks.py b/repos/system_upgrade/common/actors/checkluks/tests/test_checkluks.py
|
|
similarity index 100%
|
|
rename from repos/system_upgrade/common/actors/inhibitwhenluks/tests/test_inhibitwhenluks.py
|
|
rename to repos/system_upgrade/common/actors/checkluks/tests/test_checkluks.py
|
|
--
|
|
2.47.0
|
|
|