summaryrefslogtreecommitdiffstats
path: root/appliance/make.sh.in
diff options
context:
space:
mode:
authorRichard Jones <rjones@trick.home.annexia.org>2009-06-18 14:37:12 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-06-18 14:37:12 +0100
commite00b27fea31a67f3bae2f91c70ab1e6816673c4d (patch)
tree1a2ec039e3a09ccfa6243522c8a6e4ca9f37c018 /appliance/make.sh.in
parent6cb84b6e94f424afb9e25b392148fe679d4c7d51 (diff)
downloadlibguestfs-e00b27fea31a67f3bae2f91c70ab1e6816673c4d.tar.gz
libguestfs-e00b27fea31a67f3bae2f91c70ab1e6816673c4d.tar.xz
libguestfs-e00b27fea31a67f3bae2f91c70ab1e6816673c4d.zip
Remove unreadable binaries that give warnings in supermin appliance.
Diffstat (limited to 'appliance/make.sh.in')
-rwxr-xr-xappliance/make.sh.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/appliance/make.sh.in b/appliance/make.sh.in
index 9d77bea2..15a2f65b 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<appliance/kmod.whitelist