mirror of
https://github.com/clearlinux/rkt.git
synced 2026-08-19 13:36:39 +00:00
2c66843cc1
this introduces tar extraction inside a chroot. This is done spawning a new process. Instead of creating a new executable (difficult to find, package etc...) it adds the concept of a multicall process (like busybox). Now a new multicall command "extracttar" is added. tar.ExtractTar executes this new command passing a pipe to send the filesMap and the tar contents to stdin. The incomplete "insecure link" checks are removed from the the tar functions. Additionally these functions are now not exported and the extraction directory is always the root directory.
27 lines
438 B
Bash
Executable File
27 lines
438 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
export RKT_STAGE1_USR_FROM=$1
|
|
export RKT_STAGE1_SYSTEMD_VER=$2
|
|
|
|
export BUILD_DIR=build-rkt-$RKT_STAGE1_USR_FROM-$RKT_STAGE1_SYSTEMD_VER
|
|
|
|
mkdir -p builds
|
|
cd builds
|
|
|
|
# Semaphore does not clean git subtrees between each build.
|
|
sudo rm -rf $BUILD_DIR
|
|
|
|
git clone --depth 1 ../ $BUILD_DIR
|
|
|
|
cd $BUILD_DIR
|
|
|
|
sudo -E PATH="$PATH" ./test
|
|
|
|
cd ..
|
|
|
|
# Make sure there is enough disk space for the next build
|
|
sudo rm -rf $BUILD_DIR
|
|
|