From 06745770c7db841cd0ccca22e9427c5d3a2bf525 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sep 07 2022 10:05:23 +0000 Subject: remove-anaconda: Add autoremove flag to package removal command We want to clean up all the dependencies installed by Anaconda, which nets bigger disk savings. --- diff --git a/libexec/fedora-autofirstboot/scripts.d/remove-anaconda.sh b/libexec/fedora-autofirstboot/scripts.d/remove-anaconda.sh index 80de97a..c4abe0a 100644 --- a/libexec/fedora-autofirstboot/scripts.d/remove-anaconda.sh +++ b/libexec/fedora-autofirstboot/scripts.d/remove-anaconda.sh @@ -20,7 +20,7 @@ if [ -z "$NO_REMOVE_ANACONDA" ] && [ -x "/usr/bin/rpm" ]; then source /etc/os-release if [[ "$ID" != "rhel" ]] && [[ "$ID_LIKE" != *"rhel"* ]]; then if [ ! -e "/run/ostree-booted" ] && [ -x "/usr/bin/pkcon" ]; then - pkcon --noninteractive remove ${ANACONDA_PACKAGES} + pkcon --noninteractive --autoremove remove ${ANACONDA_PACKAGES} fi fi )