From 20e3fcdec27cd61c542e408847b6dd0e8ce59c36 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 29 Mar 2020 12:58:06 +0000 Subject: [PATCH] Do not use a login shell for LUSER Most books have something like "exec /bin/bash" in .bash_profile for the building user. This results in stopping and waiting for commands when running a a login shell. The current jhalfs way of removing .bash_profile is suboptimal, since a user may want to login as $(LUSER) and expect that the environment is set (without having to source .bashrc). So remove the "-i" flag in "sudo -u $(LUSER) ..." --- common/libs/func_wrt_Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/libs/func_wrt_Makefile b/common/libs/func_wrt_Makefile index 8ceed8c..9e7646b 100644 --- a/common/libs/func_wrt_Makefile +++ b/common/libs/func_wrt_Makefile @@ -36,7 +36,7 @@ crLOGDIR = /\$(SCRIPT_ROOT)/$LOGDIRBASE crTESTLOGDIR = /\$(SCRIPT_ROOT)/$TESTLOGDIRBASE crFILELOGDIR = /\$(SCRIPT_ROOT)/$FILELOGDIRBASE -SU_LUSER = sudo -u \$(LUSER) -i sh -c +SU_LUSER = sudo -u \$(LUSER) sh -c LUSER_HOME = \$(LHOME)/\$(LUSER) PRT_DU = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found \$(MOUNT_PT) \`\n" PRT_DU_CR = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) --exclude=lost+found --exclude /var/lib / \`\n"