Merge branch 'master' into arm64
This commit is contained in:
commit
0defafedd4
@ -87,6 +87,14 @@ on_chroot() {
|
|||||||
mount --bind /sys "${ROOTFS_DIR}/sys"
|
mount --bind /sys "${ROOTFS_DIR}/sys"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! mount | grep -q "$(realpath "${ROOTFS_DIR}"/run)"; then
|
||||||
|
mount -t tmpfs tmpfs "${ROOTFS_DIR}/run"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! mount | grep -q "$(realpath "${ROOTFS_DIR}"/tmp)"; then
|
||||||
|
mount -t tmpfs tmpfs "${ROOTFS_DIR}/tmp"
|
||||||
|
fi
|
||||||
|
|
||||||
capsh $CAPSH_ARG "--chroot=${ROOTFS_DIR}/" -- -e "$@"
|
capsh $CAPSH_ARG "--chroot=${ROOTFS_DIR}/" -- -e "$@"
|
||||||
}
|
}
|
||||||
export -f on_chroot
|
export -f on_chroot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user