mirror of
https://github.com/flatcar/scripts.git
synced 2026-04-22 05:52:09 +02:00
Merge pull request #321 from flatcar-linux/scripts
update_sdk_container_image: work around sandbox permission errors
This commit is contained in:
commit
f33072840d
@ -4,8 +4,18 @@ FROM ${BASE}
|
||||
COPY --chown=sdk:sdk sdk_container/ /mnt/host/source
|
||||
COPY --chown=sdk:sdk . /mnt/host/source/src/scripts
|
||||
|
||||
# Disable all sandboxing for SDK updates since some core packages
|
||||
# (like GO) fail to build from a permission error otherwise.
|
||||
RUN cp /home/sdk/.bashrc /home/sdk/.bashrc.bak
|
||||
RUN echo 'export FEATURES="-sandbox -usersandbox -ipc-sandbox -network-sandbox -pid-sandbox"' \
|
||||
>> /home/sdk/.bashrc
|
||||
|
||||
RUN chown sdk:sdk /mnt/host/source
|
||||
RUN /home/sdk/sdk_entry.sh ./update_chroot --toolchain_boards="amd64-usr arm64-usr"
|
||||
|
||||
RUN /home/sdk/sdk_entry.sh ./setup_board --board="arm64-usr" --regen_configs
|
||||
RUN /home/sdk/sdk_entry.sh ./setup_board --board="amd64-usr" --regen_configs
|
||||
|
||||
# Restore original .bashrc to remove sandbox disablement
|
||||
RUN mv /home/sdk/.bashrc.bak /home/sdk/.bashrc
|
||||
RUN chown sdk:sdk /home/sdk/.bashrc
|
||||
|
||||
@ -8,7 +8,6 @@
|
||||
|
||||
|
||||
set -eu
|
||||
set -x
|
||||
|
||||
cd $(dirname "$0")
|
||||
source sdk_lib/sdk_container_common.sh
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user