diff options
| author | Serge Schneider <serge@raspberrypi.com> | 2021-06-22 15:57:11 +0100 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.com> | 2021-06-22 15:57:11 +0100 |
| commit | 4b59b5a70d349fd9459a42cdecc162007d3a2fcf (patch) | |
| tree | 04da89311b9d61198621c6b8cc0b0822b90b124b | |
| parent | 95ea0ba6963441cc1a65b2059a257b32773ae5b2 (diff) | |
| parent | f9d44edb72e9a153c997266189c79cb1f96b69f3 (diff) | |
Merge remote-tracking branch 'upstream/master' into arm64
| -rw-r--r-- | Dockerfile | 2 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rwxr-xr-x | build-docker.sh | 1 | ||||
| -rw-r--r-- | depends | 2 | ||||
| -rw-r--r-- | scripts/common | 6 |
5 files changed, 8 insertions, 5 deletions
@@ -7,7 +7,7 @@ RUN apt-get -y update && \ apt-get -y install --no-install-recommends \ git vim parted \ quilt coreutils qemu-user-static debootstrap zerofree zip dosfstools \ - bsdtar libcap2-bin rsync grep udev xz-utils curl xxd file kmod bc\ + libarchive-tools libcap2-bin rsync grep udev xz-utils curl xxd file kmod bc\ binfmt-support ca-certificates qemu-utils kpartx \ && rm -rf /var/lib/apt/lists/* @@ -14,7 +14,7 @@ To install the required dependencies for `pi-gen` you should run: ```bash apt-get install coreutils quilt parted qemu-user-static debootstrap zerofree zip \ -dosfstools bsdtar libcap2-bin grep rsync xz-utils file git curl bc \ +dosfstools libarchive-tools libcap2-bin grep rsync xz-utils file git curl bc \ qemu-utils kpartx ``` diff --git a/build-docker.sh b/build-docker.sh index 9538a8b..01fd517 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -48,6 +48,7 @@ fi CONTAINER_NAME=${CONTAINER_NAME:-pigen_work} CONTINUE=${CONTINUE:-0} PRESERVE_CONTAINER=${PRESERVE_CONTAINER:-0} +PIGEN_DOCKER_OPTS=${PIGEN_DOCKER_OPTS:-""} if [ -z "${IMG_NAME}" ]; then echo "IMG_NAME not set in 'config'" 1>&2 @@ -7,7 +7,7 @@ zerofree zip mkdosfs:dosfstools capsh:libcap2-bin -bsdtar +bsdtar:libarchive-tools grep rsync xz:xz-utils diff --git a/scripts/common b/scripts/common index 6586052..2733fd8 100644 --- a/scripts/common +++ b/scripts/common @@ -22,8 +22,10 @@ bootstrap(){ capsh --drop=cap_setfcap -- -c "'${BOOTSTRAP_CMD}' $BOOTSTRAP_STR" || true - if [ -d "$2/debootstrap" ]; then - rmdir "$2/debootstrap" + if [ -d "$2/debootstrap" ] && ! rmdir "$2/debootstrap"; then + cp "$2/debootstrap/debootstrap.log" "${STAGE_WORK_DIR}" + log "bootstrap failed: please check ${STAGE_WORK_DIR}/debootstrap.log" + return 1 fi } export -f bootstrap |
