mkimage-profiles/features.in/cleanup/live/image-scripts.d/90-cleanup-pkgs

7 lines
173 B
Bash
Executable File

#!/bin/sh -efu
# remove extra packages from a bare livecd
list="$(rpmquery -a --qf='%{NAME}\n' $GLOBAL_CLEANUP_PACKAGES)"
[ -z "$list" ] || apt-get remove -f -y -- $list
: