#!/bin/bash set -ex case ${PASS} in ubuntu-server-minimal.ubuntu-server) ;; *) exit 0 ;; esac # Run the unminimize script to re-install packages with all dpkg filters removed and install packages # removed as part of minimization yes | /usr/local/sbin/unminimize # Fix up missing recommends. Other non-layered flavors handle this in # live-build/auto/build, but we need to do it here. Also, there are # additional recommends missing from server-minimal that wouldn't be # corrected by a fix to debootstrap to handle Recommends. echo "Installing any missing recommends" env DEBIAN_FRONTEND=noninteractive apt-get -y --fix-policy install