17 lines
397 B
Bash
Executable File
17 lines
397 B
Bash
Executable File
#! /bin/bash
|
|
|
|
if [ -n "$APTPROXY" ]; then
|
|
echo "Acquire::http::Proxy \"$APTPROXY\";" > $target/etc/apt/apt.conf.d/02proxy
|
|
else
|
|
rm -f $target/etc/apt/apt.conf.d/02proxy
|
|
fi
|
|
|
|
echo force-unsafe-io > $target/etc/dpkg/dpkg.cfg.d/unsafe-io
|
|
|
|
fcopy -iSM /etc/apt/sources.list
|
|
|
|
# you may want to add i386 arch to amd64 hosts
|
|
# if ifclass AMD64; then
|
|
# $ROOTCMD dpkg --add-architecture i386
|
|
# fi
|