Skip to content

Commit b51fc9c

Browse files
BaochengSuhuaqianli
authored andcommitted
Fix the base image building error due to missing dependency
Original error message: > WARNING: iot2050-image-base-1.0-r0 do_rootfs_postprocess: Looks like you have ssh host keys in the image but did not install "sshd-regen-keys". This image should not be deployed more than once. > ERROR: iot2050-image-base-1.0-r0 do_rootfs_postprocess: Install the package or forcefully remove this check! > ERROR: iot2050-image-base-1.0-r0 do_rootfs_postprocess: ExecutionError('/work/build/tmp/work/iot2050-debian-arm64/iot2050-image-base-iot2050/1.0-r0/temp/run.image_postprocess_sshd_key_regen.4785', 1, None, None) > ERROR: Logfile of failure stored in: /work/build/tmp/work/iot2050-debian-arm64/iot2050-image-base-iot2050/1.0-r0/temp/log.do_rootfs_postprocess.4785 > ERROR: Task (/work/build/../../repo/meta/recipes-core/images/iot2050-image-base.bb:do_rootfs_postprocess) failed with exit code '1' > NOTE: Tasks Summary: Attempted 201 tasks of which 194 didn't need to be rerun and 1 failed. Signed-off-by: Baocheng Su <baocheng.su@siemens.com>
1 parent bc9e73c commit b51fc9c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

meta/recipes-core/images/iot2050-image-base.bb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) Siemens AG, 2019-2023
2+
# Copyright (c) Siemens AG, 2019-2026
33
#
44
# Authors:
55
# Le Jin <le.jin@siemens.com>
@@ -13,6 +13,8 @@ inherit image
1313

1414
DESCRIPTION = "IOT2050 Debian Base Image"
1515

16+
IMAGE_PREINSTALL += "sshd-regen-keys"
17+
1618
IMAGE_INSTALL += "${IOT2050_META_PACKAGES}"
1719

1820
# Make the .wic.img symlink to the .wic file for better backward compatibility

0 commit comments

Comments
 (0)