From a6ddd00818297b0659b457a84078b51fc1ab508a Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Thu, 16 May 2024 15:56:30 -0700 Subject: [PATCH] add autoremove Signed-off-by: Nianyu Shen --- Earthfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Earthfile b/Earthfile index fe1c24b..630b011 100644 --- a/Earthfile +++ b/Earthfile @@ -671,7 +671,7 @@ base-image: IF [ "$UKI_INSTALL_ALL_FW" = "false" ] RUN modulesextra=$(dpkg-query -W -f='${Package}\n' | grep '^linux-modules-extra-' | head -n 1) && \ linuximage=$(dpkg-query -W -f='${Package}\n' | grep '^linux-image-generic-hwe-' | head -n 1) && \ - apt-get purge -y --allow-remove-essential linux-firmware wireless-regdb $linuximage $modulesextra + apt-get purge -y --auto-remove --allow-remove-essential linux-firmware wireless-regdb $linuximage $modulesextra END END @@ -750,6 +750,8 @@ base-image: if grep "selinux=1" /etc/cos/bootargs.cfg > /dev/null; then sed -i 's/selinux=1/selinux=0/g' /etc/cos/bootargs.cfg; fi END + SAVE IMAGE palette-base-image:$IMAGE_TAG + # Used to build the installer image. The installer ISO will be created from this. iso-image: FROM --platform=linux/${ARCH} +base-image