Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions config/rootfs/debos/scripts/strip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ export DEBIAN_FRONTEND=noninteractive
exec 3>&-
exec 4>&-

# Removing unused packages
# Removing unused packages.
# Use dpkg --purge --force-depends rather than apt-get remove --purge:
# in Debian trixie, python3.13 and libpython3.13-stdlib Depend: tzdata,
# so apt cascades the purge and drops the entire Python stack, which
# breaks rootfses that need python3-tap / python3-yaml / asyncio etc.
for PACKAGE in ${PACKAGES_TO_REMOVE}
do
echo ${PACKAGE}
if ! apt-get remove --purge --yes "${PACKAGE}"
if ! dpkg --purge --force-depends "${PACKAGE}"
then
echo "WARNING: ${PACKAGE} isn't installed"
fi
Expand Down
Loading