Hi.. There I'm dealing with the yocto kirkstone with the Ubuntu 20.04 LTS host
At present, i have created my custom image by adding the layer meta-custom Initially, the basic image building were successful and I'm able to boot the custom image However, my intention is to add the root password and user with the image. That's how i have added the EXTRA_USER_PARAMS variable Unfortunately, This time the image won't be successfully building This is what I'm getting as and error logs during the building of the image DEBUG: Executing shell function empty_var_volatile DEBUG: Shell function empty_var_volatile finished NOTE: Executing set_user_group ... DEBUG: Executing shell function set_user_group NOTE: custom-image: Performing usermod with [-R /home/mahendra/Documents/MyWorkSpace/my-git/Yocto-stm32mp1/build-mp1/tmp/work/stm32mp1-poky-linux-gnueabi/custom-image/1.0-r0/rootfs -P mahi root] usermod: prefix must be an absolute path ERROR: custom-image: usermod command did not succeed. WARNING: exit code 1 from a shell command. DEBUG: Python function do_rootfs finished Here I have attached the custom-image.bb file SUMMARY = "Minimal custom image for STM32MP1-DK1 board" AUTHOR= "Mahendra Sondagar | [email protected]" IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL}" IMAGE_LINGUAS = " " LICENSE = "MIT" inherit core-image inherit extrausers # Set rootfs to 200 MiB by default IMAGE_OVERHEAD_FACTOR ?= "1.2" IMAGE_ROOTFS_SIZE ?= "204800" EXTRA_USERS_PARAMS = " \ usermod -P mahi root; \ " Can anyone help me here to fix the issue ? Thanks Mahendra
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63002): https://lists.yoctoproject.org/g/yocto/message/63002 Mute This Topic: https://lists.yoctoproject.org/mt/105736532/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
