Yocto — Change/set root password

 

inherit extrausers
EXTRA_USERS_PARAMS = "usermod -P hello root;"
– This sets the root password to "hello".
– These lines can be added into your core-image-base.bbappend file.