#!/bin/sh set -e name=$1 compat=$2 sign=$3 crt=$(ls $sign/*.crt) key=$(ls $sign/*.key) common=$(dirname "$(readlink -f "$0")") work=$BUILD_DIR/mkrauc mkdir -p "$work" cp -f "$common/rauc-hooks.sh" "$work/hooks.sh" # RAUC internally uses the file extension to find a suitable install # handler, hence the name must be .img cp -f "$BINARIES_DIR/rootfs.squashfs" "$work/rootfs.img" cp -f "$BINARIES_DIR/rootfs.itbh" "$work/rootfs.itbh" cat >"$work/manifest.raucm" <