From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH] image-account-extension: fix path to passwd utility
Date: Thu, 13 Jul 2023 07:28:22 +0200 [thread overview]
Message-ID: <20230713052822.3358-1-ubely@ilbers.de> (raw)
Contrary to all other utilities used in the bbclass, `passwd` lives
in `/bin`.
The issue is caught with meta-iot2050 downstream, since it uses flag
`force-passwd-change` for the root user.
Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
meta/classes/image-account-extension.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/image-account-extension.bbclass b/meta/classes/image-account-extension.bbclass
index 5080202d..e783c135 100644
--- a/meta/classes/image-account-extension.bbclass
+++ b/meta/classes/image-account-extension.bbclass
@@ -145,7 +145,7 @@ def image_create_users(d: "DataSmart") -> None:
bb.process.run(command, "{}:{}".format(entry, password).encode())
if "force-passwd-change" in flags:
- bb.process.run([*chroot, "/usr/sbin/passwd", "--expire", entry])
+ bb.process.run([*chroot, "/usr/bin/passwd", "--expire", entry])
ROOTFS_POSTPROCESS_COMMAND += "image_postprocess_accounts"
--
2.20.1
next reply other threads:[~2023-07-13 5:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-13 5:28 Uladzimir Bely [this message]
2023-07-17 5:49 ` Uladzimir Bely
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=20230713052822.3358-1-ubely@ilbers.de \
--to=ubely@ilbers.de \
--cc=isar-users@googlegroups.com \
/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