Skip to content

Commit

Permalink
upgrade_initramfs_gen: use extend instead of +=
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Hecko committed Aug 13, 2024
1 parent fe00561 commit ecc8def
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,10 @@ def _generate_livemode_initramfs(context, userspace_initramfs_dest, target_kerne
'--kver', target_kernel_ver, '-f', userspace_initramfs_dest]

# Add dracut modules
cmd += list(itertools.chain(*(('--add', module) for module in dracut_modules)))
cmd.extend(itertools.chain(*(('--add', module) for module in dracut_modules)))

# Add kernel modules
cmd += itertools.chain(*(('--add-drivers', module.name) for module in initramfs_includes.kernel_modules))
cmd.extend(itertools.chain(*(('--add-drivers', module.name) for module in initramfs_includes.kernel_modules)))

try:
context.call(cmd, env=env)
Expand Down

0 comments on commit ecc8def

Please sign in to comment.