Skip to content

Commit

Permalink
prevent the feature for being used outside 8>9
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Hecko committed Nov 6, 2024
1 parent 4a1ac6c commit 8c6abc8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8c6abc8

Please sign in to comment.