27 lines
1.3 KiB
Diff
27 lines
1.3 KiB
Diff
From b4b535454b74c05682ecf0d3059decbd2c9530e0 Mon Sep 17 00:00:00 2001
|
|
From: Michal Hecko <mhecko@redhat.com>
|
|
Date: Wed, 6 Nov 2024 22:23:37 +0100
|
|
Subject: [PATCH 24/40] prevent the feature for being used outside 8>9
|
|
|
|
---
|
|
.../libraries/persistentnetnamesconfig.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/repos/system_upgrade/common/actors/persistentnetnamesconfig/libraries/persistentnetnamesconfig.py b/repos/system_upgrade/common/actors/persistentnetnamesconfig/libraries/persistentnetnamesconfig.py
|
|
index 2f12742a..b2c7f5ff 100644
|
|
--- a/repos/system_upgrade/common/actors/persistentnetnamesconfig/libraries/persistentnetnamesconfig.py
|
|
+++ b/repos/system_upgrade/common/actors/persistentnetnamesconfig/libraries/persistentnetnamesconfig.py
|
|
@@ -39,7 +39,8 @@ def generate_link_file(interface):
|
|
|
|
@suppress_deprecation(InitrdIncludes)
|
|
def process():
|
|
- if get_env('LEAPP_USE_NET_NAMING_SCHEMES', '0') == '1' and version.get_target_major_version() != '8':
|
|
+ if get_env('LEAPP_USE_NET_NAMING_SCHEMES', '0') == '1' and version.get_target_major_version() == '9':
|
|
+ # We can use this only for 8>9, for now
|
|
api.current_logger().info('Skipping generation of .link files renaming NICs as LEAPP_USE_NET_NAMING_SCHEMES=1')
|
|
return
|
|
|
|
--
|
|
2.47.0
|
|
|