From e9fc1d8c9fe38e10ff49a2f8c1229dbad1a7e24e Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Thu, 28 Sep 2017 09:38:23 -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 4342721d..46bc6e84 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -84,6 +84,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