From d5483eb728aabfda317b0ad9c86ce9c436be0acb Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Tue, 26 Sep 2017 22:39:09 -0400 Subject: [PATCH] Install ubuntu-minimal while unminimizing the system --- live-build/auto/build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/live-build/auto/build b/live-build/auto/build index 956d850f..b1a065b9 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -98,6 +98,12 @@ if [ -f /etc/dpkg/dpkg.cfg.d/excludes ] || [ -f /etc/dpkg/dpkg.cfg.d/excludes.dp rm /etc/dpkg/dpkg.cfg.d/excludes.dpkg-tmp fi fi + +if ! dpkg-query --show --showformat='${db:Status-Status}\n' ubuntu-minimal 2> /dev/null | grep -q '^installed$'; then + echo "Installing ubuntu-minimal package to provide the familiar Ubuntu minimal system..." + DEBIAN_FRONTEND=noninteractive apt-get install -y ubuntu-minimal +fi + EOF chmod +x chroot/usr/local/sbin/unminimize fi