From 8eb198dff7d6a6df7f0cd942368f7847bb7e8a00 Mon Sep 17 00:00:00 2001 From: Tom Reinders Date: Thu, 17 Oct 2024 13:10:59 +0200 Subject: [PATCH] images: ubuntu: 24.04: Fix missing `unminimize` script `unminimize` has been moved to a dedicated package: https://discourse.ubuntu.com/t/oracular-oriole-release-notes/44878#unminimize-33 Fixes: #1566 Signed-off-by: Tom Reinders --- images/ubuntu/24.04/Containerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/images/ubuntu/24.04/Containerfile b/images/ubuntu/24.04/Containerfile index b31189ff3..1b22118c4 100644 --- a/images/ubuntu/24.04/Containerfile +++ b/images/ubuntu/24.04/Containerfile @@ -21,9 +21,10 @@ RUN sed -Ei 's/^(hosts:.*)(\)\s*(.*)/\1\2 myhostname \3/' /etc/nsswitch. # Install ubuntu-minimal & ubuntu-standard # Install extra packages as well as libnss-myhostname COPY extra-packages / -RUN sed -Ei '/apt-get (update|upgrade)/s/^/#/' /usr/local/sbin/unminimize && \ - apt-get update && \ - yes | /usr/local/sbin/unminimize && \ +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get -y install unminimize && \ + sed -Ei '/apt-get (update|upgrade)/s/^/#/' /usr/bin/unminimize && \ + yes | /usr/bin/unminimize && \ DEBIAN_FRONTEND=noninteractive apt-get -y install \ ubuntu-minimal ubuntu-standard \ libnss-myhostname \