Hi,
I try to add a password-less user with the following Yocto-recipe
SUMMARY = "Lorem Ipsum"
DESCRIPTION = "Lorem Ipsum"
LICENSE = "CLOSED"
PR = "r1"
inherit useradd
USERADD_PACKAGES = "${PN}"
USERADD_PARAM_${PN} = "user"
GROUPADD_PARAM_${PN} = ""
do_install () {
passwd -d user
}
but the bitbake fails with the error “passwd: Permission denied”
I helped me with a systemd-unit that is called once on first boot and that delete the password of the user. But is there a more elegant way to solve this directly with Yocto?
Best regards