Merge 855de6fdc4
into d6d1ef6422
This commit is contained in:
commit
7f6291922b
2
depends
2
depends
|
@ -1,7 +1,7 @@
|
|||
quilt
|
||||
parted
|
||||
realpath:coreutils
|
||||
qemu-arm-static:qemu-user-static
|
||||
qemu-aarch64-static:qemu-user-static
|
||||
debootstrap
|
||||
zerofree
|
||||
zip
|
||||
|
|
|
@ -9,7 +9,7 @@ bootstrap(){
|
|||
|
||||
#export http_proxy=${APT_PROXY}
|
||||
|
||||
if [ "$(dpkg --print-architecture)" != "armhf" ] && [ "$(dpkg --print-architecture)" != "arm64" ]; then
|
||||
if [ "$(dpkg --print-architecture)" != "arm64" ]; then
|
||||
BOOTSTRAP_CMD=qemu-debootstrap
|
||||
fi
|
||||
|
||||
|
@ -91,7 +91,7 @@ on_chroot() {
|
|||
mount --bind /sys "${ROOTFS_DIR}/sys"
|
||||
fi
|
||||
|
||||
setarch linux32 capsh --drop=cap_setfcap "--chroot=${ROOTFS_DIR}/" -- -e "$@"
|
||||
capsh --drop=cap_setfcap "--chroot=${ROOTFS_DIR}/" -- -e "$@"
|
||||
}
|
||||
export -f on_chroot
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user