summaryrefslogtreecommitdiffstats
path: root/appliance/make.sh.in
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-12-19 10:56:06 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-12-19 10:57:06 +0000
commitda24e7aab06361b8d9bb5b5c8417611501e94684 (patch)
treee4041b7a905f825e7d5009071567be75d52e10b1 /appliance/make.sh.in
parent9556903888eed268895a8454491d56302985f7e1 (diff)
downloadlibguestfs-da24e7aab06361b8d9bb5b5c8417611501e94684.tar.gz
libguestfs-da24e7aab06361b8d9bb5b5c8417611501e94684.tar.xz
libguestfs-da24e7aab06361b8d9bb5b5c8417611501e94684.zip
appliance: Don't hard-code febootstrap --exclude parameters.
Create a separate file 'excludelist.in' that contains these regular expressions, and process it the same way as packagelist.in.
Diffstat (limited to 'appliance/make.sh.in')
-rwxr-xr-xappliance/make.sh.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/appliance/make.sh.in b/appliance/make.sh.in
index 10609da6..cb243b55 100755
--- a/appliance/make.sh.in
+++ b/appliance/make.sh.in
@@ -20,11 +20,12 @@ unset CDPATH
set -e
-# XXX Distro-dependent in future.
-excludes="--exclude ^perl --exclude ^python --exclude ^fedora-logos --exclude ^redhat-logos --exclude ^dracut --exclude ^upstart --exclude ^plymouth --exclude ^systemd --exclude ^linux-firmware --exclude ^kbd-misc"
-
-# For Debian:
-excludes="$excludes --exclude ^file-rc"
+# Turn excludelist file into command line arguments.
+exec 5<excludelist
+while read regexp <&5; do
+ excludes="$excludes --exclude $regexp"
+done
+exec 5<&-
# Run febootstrap on the package list.
if [ "x@FEBOOTSTRAP_YUM_CONFIG@" != "xno" ]; then