Richard W.M. Jones
2010-Jan-25 16:09 UTC
[Libguestfs] [PATCH] Ignore more unreadable files in the host
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
Richard W.M. Jones
2010-Jan-25 17:41 UTC
[Libguestfs] [PATCH] Ignore more unreadable files in the host
On Mon, Jan 25, 2010 at 04:09:18PM +0000, Richard W.M. Jones wrote:> 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.I have now verified that this fixes the problem in RHEL 6. For that reason, I pushed this patch to git. 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