diff options
author | Richard Jones <rjones@trick.home.annexia.org> | 2009-06-15 11:50:35 +0100 |
---|---|---|
committer | Richard Jones <rjones@trick.home.annexia.org> | 2009-06-15 20:38:12 +0100 |
commit | 414aa67f2bcbbc5009b92f32611aa9196836736b (patch) | |
tree | a7090c4d47440b3979b6c0a21ba6de378acc2bb6 /appliance/make.sh.in | |
parent | eebec43a15a5de3a5b9f1281654f9cbdd44e19cf (diff) | |
download | libguestfs-414aa67f2bcbbc5009b92f32611aa9196836736b.tar.gz libguestfs-414aa67f2bcbbc5009b92f32611aa9196836736b.tar.xz libguestfs-414aa67f2bcbbc5009b92f32611aa9196836736b.zip |
Experimental implementation of the supermin appliance (passes most tests).
Diffstat (limited to 'appliance/make.sh.in')
-rwxr-xr-x | appliance/make.sh.in | 14 |
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 ) | |