public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] image-account-extension: fix path to passwd utility
@ 2023-07-13  5:28 Uladzimir Bely
  2023-07-17  5:49 ` Uladzimir Bely
  0 siblings, 1 reply; 2+ messages in thread
From: Uladzimir Bely @ 2023-07-13  5:28 UTC (permalink / raw)
  To: isar-users

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-17  5:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-13  5:28 [PATCH] image-account-extension: fix path to passwd utility Uladzimir Bely
2023-07-17  5:49 ` Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox