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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user