Commit b0f9d052 authored by Sjoerd Simons's avatar Sjoerd Simons
Browse files

depthcharge: Fix non-fit boot without ramdisk

For non-fit kernels the ramdisk is passed on the command line; If no
ramdisk is used (which is valid) set the ramdisk value to "" otherwise
the line will be dropped from the commands

Signed-off-by: Sjoerd Simons's avatarSjoerd Simons <>
parent e4ca21aa
......@@ -148,7 +148,7 @@ class DepthchargeCommandOverlay(BootloaderCommandOverlay):
substitutions = {
"{CMDLINE}": cmdline_tftp,
"{DEPTHCHARGE_KERNEL}": fit_tftp or kernel_tftp,
"{DEPTHCHARGE_RAMDISK}": ramdisk_tftp if not fit_tftp else "",
"{DEPTHCHARGE_RAMDISK}": ramdisk_tftp or "" if not fit_tftp else "",
commands = self.get_namespace_data(
action="bootloader-overlay", label=self.method, key="commands"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment