stdlib: Add function to append kernel args (#1262)

Often, you want to add another argument to the default kernel arguments.
This function allows you to do that on the `kernel_disk_workload` board
mixin.
This commit is contained in:
Jason Lowe-Power
2024-06-20 09:14:55 -07:00
committed by GitHub
parent 25d614e4ce
commit 943daeb603

View File

@@ -249,3 +249,11 @@ class KernelDiskWorkload:
"Checkpoints must be passed as a Path or an "
"CheckpointResource."
)
def append_kernel_arg(self, arg: str) -> None:
"""
Append a kernel argument to the list of kernel arguments.
:param arg: The kernel argument to append.
"""
self.workload.command_line += f" {arg}"