summaryrefslogtreecommitdiffstats
path: root/appliance/make.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'appliance/make.sh.in')
-rwxr-xr-xappliance/make.sh.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/appliance/make.sh.in b/appliance/make.sh.in
index 8f3b2127..9d77bea2 100755
--- a/appliance/make.sh.in
+++ b/appliance/make.sh.in
@@ -80,18 +80,22 @@ rm -f $koutput
# Don't need any keyboard maps.
@FEBOOTSTRAP_RUN@ initramfs -- rm -rf /lib/kbd
+# Remove anything in home directory. Because this is potentially
+# liable to monstrous fuck-ups, we don't put a slash before 'home'.
+(cd initramfs && echo home/*) |
+ xargs @FEBOOTSTRAP_RUN@ initramfs -- rm -rf
+
+# Remove /var/lib/yum stuff.
+@FEBOOTSTRAP_RUN@ initramfs -- rm -rf /var/lib/yum
+
# Kernel modules take up nearly half of the image. Only include ones
# which are on the whitelist.
-grep -v '^[[:space:]]*$' < appliance/kmod.whitelist |
- grep -v '^#' > kmod.whitelist.tmp
-exec 5<kmod.whitelist.tmp
+exec 5<appliance/kmod.whitelist
whitelist=
while read kmod 0<&5; do
whitelist="$whitelist -a -not -name $kmod"
done
exec 5<&-
-rm kmod.whitelist.tmp
-#echo whitelist=$whitelist
(cd initramfs && \
find lib/modules/*/kernel -name '*.ko' $whitelist -a -print0 ) |