Bug 10504

Summary: [Build Appliance] The default user builder can not login
Product: [Build System, Metadata & Runtime] Runtime Reporter: Yi Zhao <yi.zhao>
Component: build-applianceAssignee: Juro Bystricky <juro.bystricky>
Status: VERIFIED FIXED QA Contact: Yi Zhao <yi.zhao>
Severity: normal    
Priority: Medium+ CC: jose.perez.carranza, richard.purdie, ross.burton, yi.zhao
Version: 2.2   
Target Milestone: 2.3 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Yi Zhao 2016-10-27 03:29:56 UTC
BA location: http://autobuilder.yoctoproject.org/pub/releases/yocto-2.2.rc6/build-appliance/

Steps:
1. Download the BA from above link and unzip
2. Run BA in vmplayer

In previous BA, there are 2 users auto login when system boot up, root and builder. And the builder is the default user for build poky.   

But in this build, only root login. When I try su to builder, I got some strange errors:
#####################################
sh-4.3# whoami
root
sh-4.3# su - builder
mesg: /dev/pts/0: Operation not permitted
qemux86-64:~$
qemux86-64:~$ whoami
builder
qemux86-64:~$ ls
-sh: ls: command not found
qemux86-64:~$ cd poky/
qemux86-64:~/poky$ . ./oe-init-build-env build/
-sh: grep: command not found
-sh: sed: command not found
Error: the directory . does not exist?
####################################
Comment 1 Juro Bystricky 2016-10-27 21:20:35 UTC
Root of the problem most likely identical to:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10434

Once 10434 is fixed, this should fix this one as well.
Comment 2 Juro Bystricky 2016-10-28 22:25:03 UTC
https://bugzilla.yoctoproject.org/show_bug.cgi?id=10434

fixed the the problem as well.
Comment 3 Ross Burton 2016-11-08 17:25:26 UTC
Fixed in oe-core 6238faf901956e2a350315a66ca1ce557deaa513.
Comment 4 Yi Zhao 2017-02-20 01:48:45 UTC
Verified with 2.2.1 RC1
git rev: morty/6a1f33cc40bfac33cf030fe41e1a8efd1e5fad6f