From ce9b3db487ca9cb1d05314886c91d499cf4179e3 Mon Sep 17 00:00:00 2001 From: "Rodrigo M. Duarte" Date: Mon, 23 Nov 2026 11:59:24 -0300 Subject: [PATCH] raw-object: accept the boot-emmc target type The updatehub agent writes a raw object with the boot-emmc target type to the eMMC hardware boot partition of the installation set being installed, the target naming the eMMC base device (e.g. /dev/mmcblk1). The agent reads it since updatehub commit 8769662 ("feat(package-schema): add the boot-emmc target type"), but the schema rejected it, so uhu could not archive such a package. Signed-off-by: Rodrigo M. Duarte --- pkgschema/schemas/raw-object.json | 4 ++-- tests/schemas/run.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgschema/schemas/raw-object.json b/pkgschema/schemas/raw-object.json index cd6173c..0d7a0ef 100644 --- a/pkgschema/schemas/raw-object.json +++ b/pkgschema/schemas/raw-object.json @@ -23,9 +23,9 @@ "$ref": "install-if-different.json" }, "target-type": { - "description": "The type of target (only device)", + "description": "The type of target: device, or boot-emmc for the eMMC hardware boot partition of the installation set being installed (the target is then the eMMC base device, e.g. /dev/mmcblk1)", "type": "string", - "enum": ["device"] + "enum": ["device", "boot-emmc"] }, "target": { "$ref": "definitions.json#/target" diff --git a/tests/schemas/run.sh b/tests/schemas/run.sh index 4a12016..824eba2 100755 --- a/tests/schemas/run.sh +++ b/tests/schemas/run.sh @@ -511,7 +511,7 @@ runner "raw-object target-type property must be mtdname or device" \ raw-object.json \ raw-object/invalid-target-type.json \ INVALID \ - "properties/target-type/enum: 'ubivolume' is not one of ['device']" + "properties/target-type/enum: 'ubivolume' is not one of ['device', 'boot-emmc']" ## PROPERTY: target runner "raw-object target is required" \