Loading debian/build.sh +3 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ if curl -s -f -LI "${DEBIAN_MIRROR}/dists/${SUITE}/" > /dev/null; then elif curl -s -f -LI "${UBUNTU_MIRROR}/dists/${SUITE}/" > /dev/null; then echo "I: Found '${SUITE}' on Ubuntu repositories, building an Ubuntu image." IMAGE="ubuntu" COMPONENTS="main,universe" MIRROR=$UBUNTU_MIRROR if [ "$SUITE" = "focal" ]; then # workaround for dash package installation failure on focal Loading @@ -47,6 +48,7 @@ elif curl -s -f -LI "${UBUNTU_MIRROR}/dists/${SUITE}/" > /dev/null; then elif curl -s -f -LI "${OLD_UBUNTU_MIRROR}/dists/${SUITE}/" > /dev/null; then echo "I: Found '${SUITE}' on Ubuntu repositories, building an Ubuntu image." IMAGE="ubuntu" COMPONENTS="main,universe" MIRROR=$OLD_UBUNTU_MIRROR else echo "Unable to determine to which distro belongs '${SUITE}'!" Loading Loading @@ -94,6 +96,7 @@ if ! mmdebstrap \ --include='ca-certificates' \ --setup-hook='cp minimize-config/dpkg.cfg.d/* "$1/etc/dpkg/dpkg.cfg.d/"' \ --setup-hook='cp minimize-config/apt.conf.d/* "$1/etc/apt/apt.conf.d/"' \ --components="${COMPONENTS:=main}" \ ${ADD_MIRROR:+--setup-hook='echo "'"$ADD_MIRROR"'" > "$1"/etc/apt/sources.list.d/custom.list'} \ --customize-hook='rm "$1"/etc/resolv.conf' \ --customize-hook='rm "$1"/etc/hostname' \ Loading Loading
debian/build.sh +3 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ if curl -s -f -LI "${DEBIAN_MIRROR}/dists/${SUITE}/" > /dev/null; then elif curl -s -f -LI "${UBUNTU_MIRROR}/dists/${SUITE}/" > /dev/null; then echo "I: Found '${SUITE}' on Ubuntu repositories, building an Ubuntu image." IMAGE="ubuntu" COMPONENTS="main,universe" MIRROR=$UBUNTU_MIRROR if [ "$SUITE" = "focal" ]; then # workaround for dash package installation failure on focal Loading @@ -47,6 +48,7 @@ elif curl -s -f -LI "${UBUNTU_MIRROR}/dists/${SUITE}/" > /dev/null; then elif curl -s -f -LI "${OLD_UBUNTU_MIRROR}/dists/${SUITE}/" > /dev/null; then echo "I: Found '${SUITE}' on Ubuntu repositories, building an Ubuntu image." IMAGE="ubuntu" COMPONENTS="main,universe" MIRROR=$OLD_UBUNTU_MIRROR else echo "Unable to determine to which distro belongs '${SUITE}'!" Loading Loading @@ -94,6 +96,7 @@ if ! mmdebstrap \ --include='ca-certificates' \ --setup-hook='cp minimize-config/dpkg.cfg.d/* "$1/etc/dpkg/dpkg.cfg.d/"' \ --setup-hook='cp minimize-config/apt.conf.d/* "$1/etc/apt/apt.conf.d/"' \ --components="${COMPONENTS:=main}" \ ${ADD_MIRROR:+--setup-hook='echo "'"$ADD_MIRROR"'" > "$1"/etc/apt/sources.list.d/custom.list'} \ --customize-hook='rm "$1"/etc/resolv.conf' \ --customize-hook='rm "$1"/etc/hostname' \ Loading