diff --git a/rwx/grub/__init__.py b/rwx/grub/__init__.py index accec9f..21b2bf5 100644 --- a/rwx/grub/__init__.py +++ b/rwx/grub/__init__.py @@ -35,6 +35,6 @@ def make_image( if pubkey_path: args.append(("--pubkey", pubkey_path)) args.extend(modules) - if modules := MODULES.get(image_format): - args.extend(modules) + if extra_modules := MODULES.get(image_format): + args.extend(extra_modules) ps.run(*args)