($INBOX_DIR/description missing)
 help / color / mirror / Atom feed
From: "Mahendra Sondagar" <mahendrasondagar08@gmail.com>
To: yocto@lists.yoctoproject.org
Subject: issue adding the user with the yocto kirkstone
Date: Thu, 25 Apr 2024 11:47:39 -0700	[thread overview]
Message-ID: <MUdL.1714070859202231693.qcwE@lists.yoctoproject.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1621 bytes --]

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 | mahendrasondagar08@gmail.com" 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

[-- Attachment #2: Type: text/html, Size: 1850 bytes --]

             reply	other threads:[~2024-04-25 18:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-25 18:47 Mahendra Sondagar [this message]
2024-04-25 18:57 ` [yocto] issue adding the user with the yocto kirkstone Daniel
2024-04-26 17:49   ` Mahendra Sondagar
2024-04-26 19:22     ` Daniel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MUdL.1714070859202231693.qcwE@lists.yoctoproject.org \
    --to=mahendrasondagar08@gmail.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).