I am creating an image with the release of Yocto / Poky Daisy 1.6.3.What is the correct path or configuration file where you can set the root password? The password is empty by default, and I can’t find a place to enter it.
Here is what you should do in your recipe.
inherit extrausers EXTRA_USERS_PARAMS = "usermod -P p @ ssw0rd root;"
where p @ ssw0rd is the password that the root user must have.
This link can help you.
"debug-tweaks" root, EXTRA_IMAGE_FEATURES.
Poky 2.1.2; root local.conf:
INHERIT += "extrausers" EXTRA_USERS_PARAMS = "usermod -P p@ssw0rd root;"
debug-tweaks
Here is the method I used that does not use the -P switch in the usermod command. You should use the following form:
EXTRA_USERS_PARAMS = "usermod -p $(openssl passwd p@ssw0rd) root;"
The usermod -P command does not work on my version of Linux.
See How to change the root password on a Bitbake Yocto dora system?
Add below to linux file conf/local.conf
conf/local.conf
INHERIT += "extrausers" EXTRA_USERS_PARAMS = "usermod -P urpassword root;"