Skip to content

Commit 594e091

Browse files
committed
enable spacewalk module only for cl8
1 parent ca92dc2 commit 594e091

File tree

1 file changed

+3
-1
lines changed
  • repos/system_upgrade/common/actors/targetuserspacecreator/libraries

1 file changed

+3
-1
lines changed

repos/system_upgrade/common/actors/targetuserspacecreator/libraries/userspacegen.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,9 @@ def prepare_target_userspace(context, userspace_dir, enabled_repos, packages):
268268
context.call(['dnf', '-y', 'localinstall', cloudlinux_release_url],
269269
callback_raw=utils.logging_handler)
270270

271-
enable_spacewalk_module(context)
271+
# cloudlinux 9 does not have modular packages
272+
if target_major_version == '8':
273+
enable_spacewalk_module(context)
272274

273275
api.current_logger().debug('Installing packages into target userspace: {}'.format(packages))
274276

0 commit comments

Comments
 (0)