Verified Commit 5c2c670d authored by Jérôme Charaoui's avatar Jérôme Charaoui 🕯️
Browse files

add universe component for ubuntu

parent 2e7c7c31
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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
@@ -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}'!"
@@ -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' \