#!/bin/sh % if [ "$REBUILD" = "core" ]; then echo "## Busting Cache, Forcing Rebuild starting at core RUN " echo $(date) fi % if ! { [ "$VERBOSE" = "core" ] || [ "$VERBOSE" = "all" ]; }; then unset VERBOSE; fi mkdir -p /opt /bin/cp -R -f -p opt/. /opt . /opt/lib/verbose.lib echo "**************************************" echo "****** Building UCI Image Core ******" quiet echo core build directory quiet pwd quiet ls -la quiet echo "--------------------------------------" . /opt/lib/distro.lib if validate_distro; then echo distro $LINUX_DISTRO was validated...continuing set_distro /bin/sh ./packages.sh /bin/bash -l ./core.sh echo echo "************* End UCI CORE build ********************" else echo !!! FATAL ERROR: distro of base image $BASE_IMAGE does not match linux distro $LINUX_DISTRO !!! exit 1 fi