85bec05dd6
Cosmetic cleanup: call the user and its home dir "builder" as it is an active entity. This will leave yocto build results under /builder/build/tmp/deploy/... Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
11 lines
232 B
Bash
Executable File
11 lines
232 B
Bash
Executable File
#!/bin/bash
|
|
|
|
USER_ID=${USERID:-30000}
|
|
|
|
# Create a non-root user that will perform the actual build
|
|
id builder 2>/dev/null || \
|
|
useradd --uid $USER_ID --create-home --home-dir /builder builder
|
|
|
|
cd /builder
|
|
exec gosu builder "$@"
|