fa56731d9c
This script was completely careless regarding the chance to meet an empty variable resulting in plain "rpm -qa" and subsequent attempt to, well, remove *all* packages. Thanks zerg@ for being persistent this time, even if he could probably find the culprit and send in this patch. :)
8 lines
217 B
Bash
Executable File
8 lines
217 B
Bash
Executable File
#!/bin/sh -efu
|
|
# remove extra packages from a bare livecd
|
|
|
|
[ -n "$GLOBAL_CLEANUP_PACKAGES" ] || exit 0
|
|
list="$(rpmquery -a --qf='%{NAME}\n' $GLOBAL_CLEANUP_PACKAGES)"
|
|
[ -z "$list" ] || apt-get remove -f -y -- $list
|
|
:
|