Skip to content

Commit 8c466eb

Browse files
committed
chore(devtool): run cmd_build in privileged container
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]>
1 parent 616f6c5 commit 8c466eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/devtool

+5
Original file line numberDiff line numberDiff line change
@@ -510,13 +510,18 @@ cmd_build() {
510510
# We don't need any special privileges for the build phase, so we run the
511511
# container as the current user/group.
512512
run_devctr \
513+
--privileged \
513514
--user "$(id -u):$(id -g)" \
514515
--workdir "$workdir" \
515516
${extra_args} \
516517
-- \
517518
./tools/release.sh --libc $libc --profile $profile
518519
ret=$?
519520

521+
# Running as root would have created some root-owned files under the build
522+
# dir. Let's fix that.
523+
cmd_fix_perms
524+
520525
if [ ! -z "$revision" ]; then
521526
popd
522527
git branch -D $branch_name

0 commit comments

Comments
 (0)