diff --git a/build-scripts/resinos-build/create_resinos.sh b/build-scripts/resinos-build/create_resinos.sh index b79546d7a..56c245d03 100755 --- a/build-scripts/resinos-build/create_resinos.sh +++ b/build-scripts/resinos-build/create_resinos.sh @@ -139,10 +139,6 @@ if [[ "$sourceBranch" == production* ]] && [ "$metaResinBranch" == "__ignore__" docker import $BUILD_DEPLOY_DIR/resinhup-$VERSION_HOSTOS.tar $DOCKER_REPO:$DOCKER_TAG docker push $DOCKER_REPO:$DOCKER_TAG docker rmi $DOCKER_REPO:$DOCKER_TAG # cleanup - - docker import $BUILD_DEPLOY_DIR/resinhup-$VERSION_HOSTOS.tar $RESINREG_REPO:$RESINREG_TAG - docker push $RESINREG_REPO:$RESINREG_TAG - docker rmi $RESINREG_REPO:$RESINREG_TAG # cleanup else echo "ERROR: The build didn't produce a resinhup package." exit 1 diff --git a/meta-hassio/recipes-containers/docker-disk/docker-resin-supervisor-disk/update-resin-supervisor b/meta-hassio/recipes-containers/docker-disk/docker-resin-supervisor-disk/update-resin-supervisor index 91f2d13a3..2039151db 100644 --- a/meta-hassio/recipes-containers/docker-disk/docker-resin-supervisor-disk/update-resin-supervisor +++ b/meta-hassio/recipes-containers/docker-disk/docker-resin-supervisor-disk/update-resin-supervisor @@ -78,6 +78,13 @@ if request=$(curl -X PUT $API_ENDPOINT/supervisor | jq -e -r '.image,.tag') fi fi +if [ -z $UPDATER_SUPERVISOR_TAG ]; then + tag=$UPDATER_SUPERVISOR_TAG +fi +if [ -z $UPDATER_SUPERVISOR_IMAGE ]; then + image_name=$UPDATER_SUPERVISOR_IMAGE +fi + # Get image id of tag. This will be non-empty only in case it's already downloaded. echo "Getting image id..." imageid=$(docker inspect -f '{{.Id}}' "$image_name:$tag") || imageid="" diff --git a/meta-hassio/recipes-core/dropbear/dropbear_%.bbappend b/meta-hassio/recipes-core/dropbear/dropbear_%.bbappend new file mode 100644 index 000000000..b06449d84 --- /dev/null +++ b/meta-hassio/recipes-core/dropbear/dropbear_%.bbappend @@ -0,0 +1,5 @@ + +do_install_append() { + install -d ${D}${sysconfdir}/default + sed -i '/DROPBEAR_EXTRA_ARGS="-g"/d' ${D}/etc/default/dropbear +} diff --git a/meta-hassio/recipes-support/resinhub/resinhub.bbappend b/meta-hassio/recipes-support/resinhub/resinhub.bbappend new file mode 100644 index 000000000..eb41a983b --- /dev/null +++ b/meta-hassio/recipes-support/resinhub/resinhub.bbappend @@ -0,0 +1,15 @@ + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += " \ + file://resinhub.conf \ + " + +FILES_${PN} += " \ + ${sysconfdir} \ + " + +do_install_append () { + install -m 0755 ${WORKDIR}/resinhub.conf ${D}${sysconfdir}/ + sed -i -e 's:@RESINHUB_MACHINE@:${MACHINE}:g' ${D}${sysconfdir}/resinhub.conf +} diff --git a/meta-hassio/recipes-support/resinhub/resinhub/resinhub.conf b/meta-hassio/recipes-support/resinhub/resinhub/resinhub.conf new file mode 100644 index 000000000..5fac88b88 --- /dev/null +++ b/meta-hassio/recipes-support/resinhub/resinhub/resinhub.conf @@ -0,0 +1 @@ +RESINHUB_MACHINE=@RESINHUB_MACHINE@ diff --git a/meta-hassio/recipes-support/resinhub/resinhub/run-resinhup b/meta-hassio/recipes-support/resinhub/resinhub/run-resinhup new file mode 100644 index 000000000..c7cad2805 --- /dev/null +++ b/meta-hassio/recipes-support/resinhub/resinhub/run-resinhup @@ -0,0 +1,339 @@ +#!/bin/bash + +# Default values +TAG=1.0 +LOGFILE=/tmp/`basename "$0"`.log +LOG=yes +ONLY_SUPERVISOR=no +NOREBOOT=no +DOCKER_REPO=pvizeli + +# Don't run anything before this source as it sets PATH here +source /etc/profile + +# Help function +function help { + cat << EOF +Wrapper to run host OS updates on resin distributions. +$0