On 09/23/2014 04:02 PM, Chris Lumens wrote:
That's where the help is stored.
---
share/runtime-cleanup.tmpl | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/share/runtime-cleanup.tmpl b/share/runtime-cleanup.tmpl
index f8107ca..37cfc2b 100644
--- a/share/runtime-cleanup.tmpl
+++ b/share/runtime-cleanup.tmpl
@@ -62,7 +62,7 @@ removepkg xorg-x11-server-common yum-utils firewalld
## other removals
remove /boot /home /media /opt /srv /tmp/*
remove /usr/etc /usr/games /usr/local /usr/tmp
-remove /usr/share/doc /usr/share/info /usr/share/man /usr/share/gnome
+remove /usr/share/info /usr/share/man /usr/share/gnome
remove /usr/share/mime/application /usr/share/mime/audio /usr/share/mime/image
remove /usr/share/mime/inode /usr/share/mime/message /usr/share/mime/model
remove /usr/share/mime/multipart /usr/share/mime/packages /usr/share/mime/text
@@ -329,6 +329,9 @@ removefrom ${product.name}-logos /etc/*
removefrom ${product.name}-logos /usr/share/icons/{Bluecurve,oxygen}/*
removefrom ${product.name}-logos
/usr/share/{firstboot,gnome-screensaver,kde4,pixmaps}/*
+## Remove everything from /usr/share/doc except for anaconda's help files.
+runcmd find ${root}/usr/share/doc -depth -mindepth 1 -path
${root}/usr/share/doc/anaconda -prune -o -type d -print0 | xargs 0 rm -r
I think this needs to be xargs -0 ... Other than that, looks good.