diff --git a/src/kernel-install/60-ukify.install.in b/src/kernel-install/60-ukify.install.in index 2e46c88ddf..1d64dd26a1 100755 --- a/src/kernel-install/60-ukify.install.in +++ b/src/kernel-install/60-ukify.install.in @@ -265,11 +265,13 @@ def call_ukify(opts) -> None: if devicetree := devicetree_file_location(opts): opts2.devicetree = devicetree - opts2.cmdline = kernel_cmdline(opts) if BOOT_STUB: opts2.stub = BOOT_STUB ukify.apply_config(opts2) + # if cmdline is not provided through config file, fall back to the current cmdline + if opts2.cmdline is None: + opts2.cmdline = kernel_cmdline(opts) ukify.finalize_options(opts2) ukify.check_inputs(opts2) ukify.make_uki(opts2)