From: Richard Jones Date: Thu, 18 Jun 2009 13:37:12 +0000 (+0100) Subject: Remove unreadable binaries that give warnings in supermin appliance. X-Git-Tag: 1.0.49~8 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=e00b27fea31a67f3bae2f91c70ab1e6816673c4d;p=libguestfs.git Remove unreadable binaries that give warnings in supermin appliance. --- diff --git a/appliance/make.sh.in b/appliance/make.sh.in index 9d77bea..15a2f65 100755 --- a/appliance/make.sh.in +++ b/appliance/make.sh.in @@ -88,6 +88,26 @@ rm -f $koutput # Remove /var/lib/yum stuff. @FEBOOTSTRAP_RUN@ initramfs -- rm -rf /var/lib/yum +# Remove some unreadable binaries which are incompatible with +# the supermin appliance. Since these binaries can't be read +# from the host filesystem, they generate warnings like: +# cpio: ./usr/bin/chfn: Cannot open: Permission denied +# These binaries are not needed for operation of the appliance. +@FEBOOTSTRAP_RUN@ initramfs -- rm -f \ + /usr/bin/chfn \ + /usr/bin/chsh \ + /usr/libexec/pt_chown \ + /usr/sbin/groupdel \ + /usr/sbin/groupadd \ + /usr/sbin/useradd \ + /usr/sbin/tzdata-update \ + /usr/sbin/userdel \ + /usr/sbin/usermod \ + /usr/sbin/groupmod \ + /usr/sbin/groupmems \ + /sbin/unix_update \ + $(cd initramfs && echo usr/sbin/glibc_post_upgrade.*) + # Kernel modules take up nearly half of the image. Only include ones # which are on the whitelist. exec 5