Commit 4f3e63d2 authored by Rémi Duraffort's avatar Rémi Duraffort
Browse files

Fix nbd deploy



The image type was not taken into account due to the missing PrepareKernelAction
Signed-off-by: default avatarRémi Duraffort <remi.duraffort@linaro.org>
parent 3df5cacb
......@@ -33,6 +33,7 @@ from lava_dispatcher.utils.shell import which
from lava_dispatcher.utils import filesystem
from lava_dispatcher.protocols.xnbd import XnbdProtocol
from lava_dispatcher.actions.deploy.overlay import OverlayAction
from lava_dispatcher.actions.deploy.prepare import PrepareKernelAction
class Nbd(Deployment):
......@@ -150,6 +151,8 @@ class NbdAction(DeployAction): # pylint:disable=too-many-instance-attributes
# prepare overlay
self.pipeline.add_action(OverlayAction())
if "kernel" in parameters and "type" in parameters["kernel"]:
self.pipeline.add_action(PrepareKernelAction())
# setup values for protocol and later steps
self.set_namespace_data(
action=self.name,
......
......@@ -18,6 +18,10 @@
pipeline:
- {class: actions.deploy.download.HttpDownloadAction, name: http-download}
- {class: actions.deploy.overlay.OverlayAction, name: lava-overlay}
- class: actions.deploy.prepare.PrepareKernelAction
name: prepare-kernel
pipeline:
- {class: actions.deploy.prepare.UBootPrepareKernelAction, name: uboot-prepare-kernel}
- {class: actions.deploy.nbd.XnbdAction, name: xnbd-server-deploy}
- class: actions.boot.u_boot.UBootAction
name: uboot-action
......
Markdown is supported
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