Skip to content

Commit

Permalink
add autoremove
Browse files Browse the repository at this point in the history
Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
  • Loading branch information
nianyush committed May 16, 2024
1 parent 667b249 commit a6ddd00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a6ddd00

Please sign in to comment.