[PATCH] image-account-extension: fix path to passwd utility

4 views
Skip to first unread message

Uladzimir Bely

unread,
Jul 13, 2023, 1:28:26 AM7/13/23
to isar-...@googlegroups.com
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 <ub...@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

Uladzimir Bely

unread,
Jul 17, 2023, 1:49:26 AM7/17/23
to isar-...@googlegroups.com
Applied to next.
Reply all
Reply to author
Forward
0 new messages