Add sha256 for downloaded kernel and rootfs
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 23 Sep 2019 19:54:38 +0000 (15:54 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 23 Sep 2019 19:54:38 +0000 (15:54 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
scripts/babeltrace-benchmark/lava_submit.py
scripts/babeltrace-benchmark/template_lava_job_bt_benchmark.jinja2

index 8ee331e3f8e5122e39fa028a23a689c17191db16..b6ec868ca76963103c542e72531241d64f2946ee 100644 (file)
@@ -54,9 +54,11 @@ def submit(
     commit, debug=False, kernel_commit=DEFAULT_KERNEL_COMMIT, wait_for_completion=True
 ):
     nfsrootfs = "https://obj.internal.efficios.com/lava/rootfs/rootfs_amd64_xenial_2018-12-05.tar.gz"
+    nfsrootfs_sha256 = "0df15933ed18eb73ed5f0e7b1eca8d032ee88d92e5dbfc0f56dcc68c821048a8"
     kernel_url = "https://obj.internal.efficios.com/lava/kernel/{}.baremetal.bzImage".format(
         kernel_commit
     )
+    kernel_sha256 = "0da55bad8c780a889ae71e7aa0f4788bc671c598c21369ad4211555088e3d889"
     modules_url = "https://obj.internal.efficios.com/lava/modules/linux/{}.baremetal.linux.modules.tar.gz".format(
         kernel_commit
     )
@@ -78,7 +80,9 @@ def submit(
 
     context = dict()
     context["kernel_url"] = kernel_url
+    context["kernel_sha256"] = kernel_sha256
     context["nfsrootfs_url"] = nfsrootfs
+    context["nfsrootfs_sha256"] = nfsrootfs_sha256
     context["commit_hash"] = commit
 
     render = jinja_template.render(context)
index 4a0b2fb45a986077f9c5f260278c365ba7c12e59..227356b251c514bf3eef66329d39e0a046d88a66 100644 (file)
@@ -27,9 +27,11 @@ actions:
         to: tftp
         kernel:
           url: {{ kernel_url }}
+          sha256sum: {{ kernel_sha256}}
           type: zimage
         nfsrootfs:
           url: {{ nfsrootfs_url }}
+          sha256sum: {{ nfsroot_sha256}}
           compression: gz
 
     - boot:
This page took 0.024107 seconds and 4 git commands to generate.