forked from rpms/leapp-repository
75c9028095
- Enable new upgrade path for RHEL 8.10 -> RHEL 9.4 (including RHEL with SAP HANA) - Introduce generic transition of systemd services states during the IPU - Introduce possibility to upgrade with local repositories - Improve possibilities of upgrade when a proxy is configured in DNF configutation file - Fix handling of symlinks under /etc/pki when managing certificates - Fix the upgrade with custom https repositories - Default to the NO_RHSM mode when subscription-manager is not installed - Detect customized configuration of dynamic linker - Drop the invalid `tuv` target channel for the --channel option - Fix the issue of going out of bounds in the isccfg parser - Fix traceback when saving the rhsm facts results and the /etc/rhsm/facts directory doesn’t exist yet - Load all rpm repository substitutions that dnf knows about, not just "releasever" only - Simplify handling of upgrades on systems using RHUI, reducing the maintenance burden for cloud providers - Detect possible unexpected RPM GPG keys has been installed during RPM transaction - Resolves: RHEL-16729
27 lines
925 B
Diff
27 lines
925 B
Diff
From 6661e496143c47e92cd1d83ed1e4f1da8d0d617a Mon Sep 17 00:00:00 2001
|
|
From: Evgeni Golov <evgeni@golov.de>
|
|
Date: Sat, 21 Oct 2023 16:26:17 +0200
|
|
Subject: [PATCH 20/38] default to NO_RHSM mode when subscription-manager is
|
|
not found
|
|
|
|
---
|
|
commands/upgrade/util.py | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/commands/upgrade/util.py b/commands/upgrade/util.py
|
|
index b52da25c..b11265ee 100644
|
|
--- a/commands/upgrade/util.py
|
|
+++ b/commands/upgrade/util.py
|
|
@@ -191,6 +191,8 @@ def prepare_configuration(args):
|
|
os.environ['LEAPP_UNSUPPORTED'] = '0' if os.getenv('LEAPP_UNSUPPORTED', '0') == '0' else '1'
|
|
if args.no_rhsm:
|
|
os.environ['LEAPP_NO_RHSM'] = '1'
|
|
+ elif not os.path.exists('/usr/sbin/subscription-manager'):
|
|
+ os.environ['LEAPP_NO_RHSM'] = '1'
|
|
elif os.getenv('LEAPP_NO_RHSM') != '1':
|
|
os.environ['LEAPP_NO_RHSM'] = os.getenv('LEAPP_DEVEL_SKIP_RHSM', '0')
|
|
|
|
--
|
|
2.41.0
|
|
|