Date
1 - 3 of 3
Cannot reset root password with yocto build #kirkstone
vivsundar@...
Hi all,
I am usnig the imx6 freescale processor. I am trying to build rootFS with yocto build "5.15-kirkstone" branch I use Sysvinit for my bootup sequence. I cannot reset the root password. I have tried the following things: Added the following line in local.conf INHERIT += "extrausers" EXTRA_USERS_PARAMS = "usermod -p '\$6\$rYOC7GCfUdPrKZdt\$GbxrFaYxl0Wdk9ZyuR/HarDrChctvbHQqdmdtGS.dxCq0FUxLVdxgvdBCoofs4NLcc/0GZ3pbMcrNeT3KwCFk/' root;" I can see that when i add this line the /etc/shadow file is updated with the password hash Manually changed the /etc/shadow file with the hash root:$6$rYOC7GCfUdPrKZdt$GbxrFaYxl0Wdk9ZyuR/HarDrChctvbHQqdmdtGS.dxCq0FUxLVdxgvdBCoofs4NLcc/0GZ3pbMcrNeT3KwCFk/:15069:0:99999:7::: But yet no use. I tried to add IMAGE_FEATURES = " debug-tweaks" EXTRA_IMAGE_FEATURES = " empty-root-password" EXTRA_IMAGE_FEATURES += " ssh-server-dropbear" EXTRA_IMAGE_FEATURES += " allow-empty-password" EXTRA_IMAGE_FEATURES += " allow-root-login" but yet no use. I am using sysvinit V3.01 in the build. Can some one point what file should i change in order to change the root password? |
|
Otavio Salvador
Hello, You can use a task for this, see below: # Default root password ROOT_USER_PASSWORD ?= "xxx" change_root_password() { echo 'root:${ROOT_USER_PASSWORD}' | chpasswd -R ${IMAGE_ROOTFS} root } ROOTFS_POSTPROCESS_COMMAND += "change_root_password ; " Em seg., 2 de jan. de 2023 às 05:48, <vivsundar@...> escreveu: Hi all, --
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 |
|
vivsundar@...
I was trying to boot through NFS. So the problem was that sysinit v3.01 is not allowing root login through NFS. After changing the nfs server side parameters(added no_root_squash,insecure /etc/exports) i am able to boot with NFS.
This is the root cause. I am able the change the password using above mentioned procedure. |
|