Skip to content

Commit

Permalink
Merge branch 'basvandijk/boundary-node-CONFIG-label' into 'master'
Browse files Browse the repository at this point in the history
chore: set the CONFIG label for the boundary-node config image

This enables boundary-nodes running in Utopia (cloud) environment to
find their config devices. 

See merge request dfinity-lab/public/ic!16654
  • Loading branch information
basvandijk committed Dec 11, 2023
2 parents 95fe08c + 238985b commit a24e15e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions ic-os/boundary-guestos/scripts/build-bootstrap-config-image.sh
Expand Up @@ -607,11 +607,15 @@ function build_ic_bootstrap_diskimage() {
shift

local TMPDIR=$(mktemp -d)
build_ic_bootstrap_tar "${TMPDIR}/ic-bootstrap.tar" "$@"

truncate -s 10M "${OUT_FILE}"
mkfs.vfat "${OUT_FILE}"
mcopy -i "${OUT_FILE}" -o "${TMPDIR}/ic-bootstrap.tar" ::
local TAR="${TMPDIR}/ic-bootstrap.tar"
build_ic_bootstrap_tar "${TAR}" "$@"

size=$(du --bytes "${TAR}" | awk '{print $1}')
size=$((2 * size + 1048576))
echo "image size: $size"
truncate -s $size "${OUT_FILE}"
mkfs.vfat -n CONFIG "${OUT_FILE}"
mcopy -i "${OUT_FILE}" -o "${TAR}" ::

rm -rf "${TMPDIR}"
}
Expand Down

0 comments on commit a24e15e

Please sign in to comment.