[Model] ALL
[BinType] AP
[Customer] OPEN
[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A
[Problem] gbs chroot does not load "/etc/profile"
[Cause & Measure] Defined NON_INTERACTIVE_LOGIN_SHELLS flag
[Checking Method]
sudo vim path_to_buildroot/scratch.armv7l.0/etc/profile
At the end append: export FOO=1
sudo chroot path_to_buildroot/scratch.armv7l.0/
su -c env - abuild
expected result:
It should prints: FOO=1
[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A
Change-Id: If3c557cb3bb1c47fbecb6989f27551e5ab872085
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
/* Define this to make non-interactive shells begun with argv[0][0] == '-'
run the startup files when not in posix mode. */
-/* #define NON_INTERACTIVE_LOGIN_SHELLS */
+#define NON_INTERACTIVE_LOGIN_SHELLS
/* Define this if you want bash to try to check whether it's being run by
sshd and source the .bashrc if so (like the rshd behavior). */