[Libguestfs] [PATCH] Ignore more unreadable files in the host

Richard W.M. Jones rjones at redhat.com
Mon Jan 25 16:09:18 UTC 2010


This is a RHEL 6 related patch.  For some reason as yet not
determined, RHEL 6 contains a lot more unreadable files than Fedora,
which, because they are unreadable, cannot be added to the supermin
appliance on the fly.

I think this is not a good long-term solution: We should detect these
files and include them in the base part of the supermin appliance.
But for now this works around the issue on RHEL 6.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
-------------- next part --------------
diff --git a/appliance/make.sh.in b/appliance/make.sh.in
index b3cbe92..677e995 100755
--- a/appliance/make.sh.in
+++ b/appliance/make.sh.in
@@ -98,6 +98,23 @@ if [ "@DIST@" = "REDHAT" ]; then
     /usr/sbin/tcpd \
     /lib/dbus-1/dbus-daemon-launch-helper \
     /lib64/dbus-1/dbus-daemon-launch-helper \
+    /etc/passwd- \
+    /etc/group- \
+    /etc/gshadow \
+    /etc/gshadow- \
+    /etc/shadow \
+    /etc/shadow- \
+    /etc/securetty \
+    /etc/sysconfig/iptables-config \
+    /etc/default/useradd \
+    /etc/security/opasswd \
+    /etc/libaudit.conf \
+    /var/log/tallylog \
+    /var/log/maillog \
+    /var/log/secure \
+    /var/log/spooler \
+    /var/log/messages \
+    /var/log/btmp \
     $(cd initramfs && echo usr/sbin/glibc_post_upgrade.*)
 
   # Kernel modules take up nearly half of the image.  Only include ones


More information about the Libguestfs mailing list