From 4b33b1ac46fb525941c588b0a4c1b3ce132cad71 Mon Sep 17 00:00:00 2001 From: Patrick Vacek Date: Thu, 29 Mar 2018 13:45:30 +0200 Subject: Try to set hardware IDs in local.conf. Communicating the IDs to the images works, but getting the IDs in the garage-push commits does not. I can get the variables exported, but the script still uses the wrong (old) value. Not sure why. --- recipes-test/images/primary-image.bb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'recipes-test/images/primary-image.bb') diff --git a/recipes-test/images/primary-image.bb b/recipes-test/images/primary-image.bb index 6d2df94..21ff565 100644 --- a/recipes-test/images/primary-image.bb +++ b/recipes-test/images/primary-image.bb @@ -1,9 +1,17 @@ include recipes-core/images/core-image-minimal.bb +#export SOTA_PRIMARY_HARDWARE_ID +#export SOTA_HARDWARE_ID + SUMMARY = "A minimal Uptane Primary image running aktualizr, for testing with a Linux secondary" LICENSE = "MIT" +python () { + if d.getVar("SOTA_PRIMARY_HARDWARE_ID", True): + d.setVar("SOTA_HARDWARE_ID", d.getVar("SOTA_PRIMARY_HARDWARE_ID", True)) +} + IMAGE_INSTALL_remove = " \ " -- cgit v1.2.3-54-g00ecf