Remove APT proxy feature because I don't need it
This commit is contained in:
parent
63ff2fef6c
commit
9e7becc76d
4 changed files with 0 additions and 11 deletions
1
build.sh
1
build.sh
|
@ -208,7 +208,6 @@ export IMG_NAME
|
|||
export HOSTNAME
|
||||
export USERNAME
|
||||
export PASSWORD
|
||||
export APT_PROXY
|
||||
|
||||
export STAGE
|
||||
export STAGE_DIR
|
||||
|
|
|
@ -11,8 +11,6 @@ bootstrap() {
|
|||
local ARCH
|
||||
ARCH=$(dpkg --print-architecture)
|
||||
|
||||
export http_proxy=${APT_PROXY}
|
||||
|
||||
if [ "$ARCH" != "armhf" ]; then
|
||||
local BOOTSTRAP_CMD=qemu-debootstrap
|
||||
else
|
||||
|
|
|
@ -3,13 +3,6 @@
|
|||
install -m 644 files/sources.list ${ROOTFS_DIR}/etc/apt/
|
||||
install -m 644 files/raspi.list ${ROOTFS_DIR}/etc/apt/sources.list.d/
|
||||
|
||||
if [ -n "$APT_PROXY" ]; then
|
||||
install -m 644 files/51cache ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache
|
||||
sed ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache -i -e "s|APT_PROXY|${APT_PROXY}|"
|
||||
else
|
||||
rm -f ${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache
|
||||
fi
|
||||
|
||||
on_chroot apt-key add - < files/raspberrypi.gpg.key
|
||||
on_chroot << EOF
|
||||
apt-get update
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Acquire::http { Proxy "APT_PROXY"; };
|
Reference in a new issue