diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2018-03-29 13:45:30 +0200 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2018-05-28 11:10:57 +0200 |
commit | 4b33b1ac46fb525941c588b0a4c1b3ce132cad71 (patch) | |
tree | 244af48911d34ebc10ff12c35d1f107755666393 /classes | |
parent | 4bcd0509c780a2e244aab4713926a548c176fb5f (diff) | |
download | meta-updater-bugfix/PRO-5140/hardware_ids.tar.gz |
Try to set hardware IDs in local.conf.bugfix/PRO-5140/hardware_ids
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.
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image_types_ostree.bbclass | 3 | ||||
-rw-r--r-- | classes/sota.bbclass | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass index bc44e33..1313c40 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass | |||
@@ -10,6 +10,7 @@ do_image_ostree[depends] += "ostree-native:do_populate_sysroot \ | |||
10 | export OSTREE_REPO | 10 | export OSTREE_REPO |
11 | export OSTREE_BRANCHNAME | 11 | export OSTREE_BRANCHNAME |
12 | export GARAGE_TARGET_NAME | 12 | export GARAGE_TARGET_NAME |
13 | export SOTA_HARDWARE_ID | ||
13 | 14 | ||
14 | RAMDISK_EXT ?= ".${OSTREE_INITRAMFS_FSTYPES}" | 15 | RAMDISK_EXT ?= ".${OSTREE_INITRAMFS_FSTYPES}" |
15 | 16 | ||
@@ -220,7 +221,7 @@ IMAGE_CMD_garagesign () { | |||
220 | --length 0 \ | 221 | --length 0 \ |
221 | --url "${GARAGE_TARGET_URL}" \ | 222 | --url "${GARAGE_TARGET_URL}" \ |
222 | --sha256 ${ostree_target_hash} \ | 223 | --sha256 ${ostree_target_hash} \ |
223 | --hardwareids ${MACHINE} | 224 | --hardwareids ${SOTA_HARDWARE_ID} |
224 | garage-sign targets sign --repo tufrepo \ | 225 | garage-sign targets sign --repo tufrepo \ |
225 | --home-dir ${GARAGE_SIGN_REPO} \ | 226 | --home-dir ${GARAGE_SIGN_REPO} \ |
226 | --key-name=targets | 227 | --key-name=targets |
diff --git a/classes/sota.bbclass b/classes/sota.bbclass index 38d4ce5..d9df83a 100644 --- a/classes/sota.bbclass +++ b/classes/sota.bbclass | |||
@@ -36,6 +36,8 @@ GARAGE_TARGET_NAME ?= "${OSTREE_BRANCHNAME}" | |||
36 | GARAGE_TARGET_VERSION ?= "" | 36 | GARAGE_TARGET_VERSION ?= "" |
37 | GARAGE_TARGET_URL ?= "https://example.com/" | 37 | GARAGE_TARGET_URL ?= "https://example.com/" |
38 | 38 | ||
39 | SOTA_HARDWARE_ID ?= "${MACHINE}" | ||
40 | |||
39 | SOTA_MACHINE ??="none" | 41 | SOTA_MACHINE ??="none" |
40 | SOTA_MACHINE_rpi ?= "raspberrypi" | 42 | SOTA_MACHINE_rpi ?= "raspberrypi" |
41 | SOTA_MACHINE_porter ?= "porter" | 43 | SOTA_MACHINE_porter ?= "porter" |