Skip to content

Commit

Permalink
chore(devtool): run cmd_build in privileged container
Browse files Browse the repository at this point in the history
This is needed for CI to install previous version of the
toolchain used on the main branch. This change will need
to be reverted after this PR is merged.

Signed-off-by: Egor Lazarchuk <[email protected]>
  • Loading branch information
ShadowCurse committed Nov 28, 2024
1 parent 616f6c5 commit cabf228
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/devtool
Original file line number Diff line number Diff line change
Expand Up @@ -510,13 +510,17 @@ cmd_build() {
# We don't need any special privileges for the build phase, so we run the
# container as the current user/group.
run_devctr \
--user "$(id -u):$(id -g)" \
--privileged \
--workdir "$workdir" \
${extra_args} \
-- \
./tools/release.sh --libc $libc --profile $profile
ret=$?

# Running as root would have created some root-owned files under the build
# dir. Let's fix that.
cmd_fix_perms

if [ ! -z "$revision" ]; then
popd
git branch -D $branch_name
Expand Down

0 comments on commit cabf228

Please sign in to comment.