Implement fallback for cmdline in ukify installation

Added fallback for cmdline if not provided in config.

(cherry picked from commit 1e098a4b34c68e9b1878efb9d7c1b56a2c220619)
This commit is contained in:
flixman
2026-10-16 11:36:32 +01:00
committed by Luca Boccassi
parent aba5c2df8e
commit f9b52a6be3
+3 -1
View File
@@ -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)