From d2b431820b6caa496b772490ae02a7b9448789af Mon Sep 17 00:00:00 2001 From: Anton Gerasimov Date: Tue, 9 Oct 2018 16:09:19 +0200 Subject: Document version overriding and add warnings --- classes/image_types_ostree.bbclass | 2 ++ classes/target_version_example.bbclass | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'classes') diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass index 1d43324..5a17096 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass @@ -210,8 +210,10 @@ IMAGE_CMD_garagesign () { target_version=${ostree_target_hash} if [ -n "${GARAGE_TARGET_VERSION}" ]; then target_version=${GARAGE_TARGET_VERSION} + bbwarn "Target version is overriden with GARAGE_TARGET_VERSION variable. It is a dangerous operation, make sure you've read the respective secion in meta-updater/README.adoc" elif [ -e "${STAGING_DATADIR_NATIVE}/target_version" ]; then target_version=$(cat "${STAGING_DATADIR_NATIVE}/target_version") + bbwarn "Target version is overriden with target_version file. It is a dangerous operation, make sure you've read the respective secion in meta-updater/README.adoc" fi # Push may fail due to race condition when multiple build machines try to push simultaneously diff --git a/classes/target_version_example.bbclass b/classes/target_version_example.bbclass index 5adf159..ef119fb 100644 --- a/classes/target_version_example.bbclass +++ b/classes/target_version_example.bbclass @@ -1,5 +1,4 @@ -# Writes uses repo manifest version as a target version -# +# Writes target version to be used by garage-sign HOSTTOOLS += " git " -- cgit v1.2.3-54-g00ecf