summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.org>2020-02-20 18:43:05 +0000
committerSerge Schneider <serge@raspberrypi.com>2020-07-30 15:29:40 +0100
commit99399d30fc7c80553cf50899388ff8ecb278867d (patch)
tree56b64c41fc1aaae2133da613ac4a780686f2a562 /scripts
parent9a3a10bf1019ebb2d59053564dc6b90068bad27d (diff)
aarch64
Diffstat (limited to 'scripts')
-rw-r--r--scripts/common11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/common b/scripts/common
index e2048d9..6586052 100644
--- a/scripts/common
+++ b/scripts/common
@@ -7,19 +7,20 @@ bootstrap(){
local BOOTSTRAP_CMD=debootstrap
local BOOTSTRAP_ARGS=()
- export http_proxy=${APT_PROXY}
+ #export http_proxy=${APT_PROXY}
- if [ "$(dpkg --print-architecture)" != "armhf" ] && [ "$(dpkg --print-architecture)" != "aarch64" ]; then
+ if [ "$(dpkg --print-architecture)" != "armhf" ] && [ "$(dpkg --print-architecture)" != "arm64" ]; then
BOOTSTRAP_CMD=qemu-debootstrap
fi
- BOOTSTRAP_ARGS+=(--arch armhf)
+ BOOTSTRAP_ARGS+=(--arch arm64)
+ BOOTSTRAP_ARGS+=(--include gnupg)
BOOTSTRAP_ARGS+=(--components "main,contrib,non-free")
- BOOTSTRAP_ARGS+=(--keyring "${STAGE_DIR}/files/raspberrypi.gpg")
+ #BOOTSTRAP_ARGS+=(--keyring "${STAGE_DIR}/files/raspberrypi.gpg")
BOOTSTRAP_ARGS+=("$@")
printf -v BOOTSTRAP_STR '%q ' "${BOOTSTRAP_ARGS[@]}"
- setarch linux32 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
rmdir "$2/debootstrap"