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