Skip to content

Commit

Permalink
Merge branch 'eero/bn-hashes' into 'master'
Browse files Browse the repository at this point in the history
Add the hash tool to BNs

 

See merge request dfinity-lab/public/ic!19278
  • Loading branch information
Bownairo committed May 14, 2024
2 parents 492214e + 022b819 commit 46c5dd1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ic-os/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,31 @@ def boundary_node_icos_build(
tags = ["manual"],
)

# Helpful tool to print a hash of all input rootfs files
tree_hash(
name = "root-files-hash",
src = boundary_rootfs_files,
tags = ["manual"],
)

native.genrule(
name = "echo-root-files-hash",
srcs = [
":root-files-hash",
],
outs = ["root-files-hash-script"],
cmd = """
HASH="$(location :root-files-hash)"
cat <<EOF > $@
#!/usr/bin/env bash
set -euo pipefail
cat $$HASH
EOF
""",
executable = True,
tags = ["manual"],
)

ext4_image(
name = "partition-config.tzst",
partition_size = "100M",
Expand Down

0 comments on commit 46c5dd1

Please sign in to comment.