Merge remote-tracking branch 'upstream/master' into arm64
This commit is contained in:
commit
4b59b5a70d
5 changed files with 8 additions and 5 deletions
|
@ -7,7 +7,7 @@ RUN apt-get -y update && \
|
||||||
apt-get -y install --no-install-recommends \
|
apt-get -y install --no-install-recommends \
|
||||||
git vim parted \
|
git vim parted \
|
||||||
quilt coreutils qemu-user-static debootstrap zerofree zip dosfstools \
|
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 \
|
binfmt-support ca-certificates qemu-utils kpartx \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ To install the required dependencies for `pi-gen` you should run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
apt-get install coreutils quilt parted qemu-user-static debootstrap zerofree zip \
|
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
|
qemu-utils kpartx
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,7 @@ fi
|
||||||
CONTAINER_NAME=${CONTAINER_NAME:-pigen_work}
|
CONTAINER_NAME=${CONTAINER_NAME:-pigen_work}
|
||||||
CONTINUE=${CONTINUE:-0}
|
CONTINUE=${CONTINUE:-0}
|
||||||
PRESERVE_CONTAINER=${PRESERVE_CONTAINER:-0}
|
PRESERVE_CONTAINER=${PRESERVE_CONTAINER:-0}
|
||||||
|
PIGEN_DOCKER_OPTS=${PIGEN_DOCKER_OPTS:-""}
|
||||||
|
|
||||||
if [ -z "${IMG_NAME}" ]; then
|
if [ -z "${IMG_NAME}" ]; then
|
||||||
echo "IMG_NAME not set in 'config'" 1>&2
|
echo "IMG_NAME not set in 'config'" 1>&2
|
||||||
|
|
2
depends
2
depends
|
@ -7,7 +7,7 @@ zerofree
|
||||||
zip
|
zip
|
||||||
mkdosfs:dosfstools
|
mkdosfs:dosfstools
|
||||||
capsh:libcap2-bin
|
capsh:libcap2-bin
|
||||||
bsdtar
|
bsdtar:libarchive-tools
|
||||||
grep
|
grep
|
||||||
rsync
|
rsync
|
||||||
xz:xz-utils
|
xz:xz-utils
|
||||||
|
|
|
@ -22,8 +22,10 @@ bootstrap(){
|
||||||
|
|
||||||
capsh --drop=cap_setfcap -- -c "'${BOOTSTRAP_CMD}' $BOOTSTRAP_STR" || true
|
capsh --drop=cap_setfcap -- -c "'${BOOTSTRAP_CMD}' $BOOTSTRAP_STR" || true
|
||||||
|
|
||||||
if [ -d "$2/debootstrap" ]; then
|
if [ -d "$2/debootstrap" ] && ! rmdir "$2/debootstrap"; then
|
||||||
rmdir "$2/debootstrap"
|
cp "$2/debootstrap/debootstrap.log" "${STAGE_WORK_DIR}"
|
||||||
|
log "bootstrap failed: please check ${STAGE_WORK_DIR}/debootstrap.log"
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
export -f bootstrap
|
export -f bootstrap
|
||||||
|
|
Loading…
Reference in a new issue