Currently the root user's home directory is '/home/root'... This is different then most Linux distributions. It has been requested on the oe-core mailing list that it be possible to dynamically define the root user's home directory as part of the distribution configuration. Any change to the root user's home directory must be matched in the handful of recipes that have specific root user knowledge. (A quick grep should find them.)
Patch series are merged and last commit is Yocto 845c2c0bd5db3ddab917d9945c2434b6e8c8c15b
Verified with master : 53cc748b93e8af584557d6db5309c3e955182c5c Steps: ######### 1. Add ROOT_HOME = "/root" to conf/local.conf 2. Build the image 3. Boot up the system and check the root home directory. The root user's home directory should be /root. And the 'passwd' command works fine. #########