[poky] Default root password without 'debug-tweaks'?
    Paul Eggleton 
    paul.eggleton at linux.intel.com
       
    Thu Jul 25 04:47:04 PDT 2013
    
    
  
Hi Bryan,
On Wednesday 24 July 2013 14:56:36 Bryan Evenson wrote:
> I have an image that I built without the 'debug-tweaks' image feature, just
> to confirm that there is a root password.  Sure enough, I need to type
> something in to login as root.  Unfortunately, the default root password
> for the image is not something obvious, and I haven't been able to track
> down what the default is set to.
> 
> Does anyone know what the default root password is set to when you turn off
> the 'debug-tweaks' image feature? 
When debug-tweaks is not in IMAGE_FEATURES, there is no valid password set for 
root, i.e. the account is effectively locked.
> While we're at it, what's a good method to set the default root password to
> a different value for an image?
One way to do it would be to define a shell function in your image recipe (or a 
class that your image recipes all inherit, if you have more than one) that 
modifies ${IMAGE_ROOTFS}/etc/passwd, and then add that function to 
ROOTFS_POSTPROCESS_COMMAND.
Cheers,
Paul
-- 
Paul Eggleton
Intel Open Source Technology Centre
    
    
More information about the poky
mailing list