diff options
| author | Martin Hundeb?ll <martin@geanix.com> | 2024-05-27 14:40:57 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-06-14 05:19:22 -0700 |
| commit | 331a3b87a76c1639d2841360207898b04c04ff88 (patch) | |
| tree | 114d5e1bd1dfc651a9fa3722fa0e5143737b1dff /meta/classes-recipe | |
| parent | bafda5147ac90ba237548a36fa254b179bc557ea (diff) | |
| download | poky-331a3b87a76c1639d2841360207898b04c04ff88.tar.gz | |
classes: image_types: quote variable assignment needed by dash
The change in commit 39fc503036
("classes: image_types: apply EXTRA_IMAGECMD:squashfs* in oe_mksquashfs()")
assigns $@ to a local variable without quoting it. While this works with
bash, it fails with dash. Here, only the first token of $@ is assigned
to the variable, and the reamining tokens are passed as arguments to the
"local" keyword.
Fix it by adding the missing quotes.
(From OE-Core rev: a3b51197f3ce868c83ed5ca415bd6506ecc2575d)
Signed-off-by: Martin Hundebøll <martin@geanix.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 14ca134f9f72d518c9180156a8efac19f8bb3ab0)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/classes-recipe')
| -rw-r--r-- | meta/classes-recipe/image_types.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/image_types.bbclass b/meta/classes-recipe/image_types.bbclass index b4a83ae284..2f948ecbf8 100644 --- a/meta/classes-recipe/image_types.bbclass +++ b/meta/classes-recipe/image_types.bbclass | |||
| @@ -113,7 +113,7 @@ IMAGE_CMD:btrfs () { | |||
| 113 | 113 | ||
| 114 | oe_mksquashfs () { | 114 | oe_mksquashfs () { |
| 115 | local comp=$1; shift | 115 | local comp=$1; shift |
| 116 | local extra_imagecmd=$@ | 116 | local extra_imagecmd="$@" |
| 117 | 117 | ||
| 118 | if [ "$comp" = "zstd" ]; then | 118 | if [ "$comp" = "zstd" ]; then |
| 119 | suffix="zst" | 119 | suffix="zst" |
