# These directions are derived from 'man rsync' plus lots of trial and error
 
# For example, to force a file from /usr to be on the ramdisk requires the
# following:
# a line with the + option listing the full filename without a leading /
# also each directory on the path must be listed using the + option
# these directories are listed without the leading / but with a trailing /
# and then each directory followed by a * has to be listed again, without the +
 
# An example for how to include some executables from the /usr/bin directory
+ usr/bin/rsync
+ usr/bin/id
+ usr/bin/expr
+ usr/bin/find
+ usr/bin/run-parts
+ usr/bin/rdate
# Include the LAM-MPI's lamd in the ramdisk
+ usr/bin/lamd
+ usr/bin/
/usr/bin/*

# Sometimes LAM-MPI's lamd is in /usr/local/bin
+ usr/local/bin/lamd
+ usr/local/bin/
+ usr/local/
/usr/local**

# Include chroot, xinited, and wulfd on the ramdisk
+ usr/sbin/chroot
+ usr/sbin/xinetd
+ usr/sbin/wulfd
+ usr/sbin/
/usr/sbin/*

#Depending on the version of glibc, these files might need to be on the ramdisk
# To make the specific locale info for glibc be on the ramdisk, update
# the next line to your locale, keep the trailing ** it is important
#+ usr/lib/locale/en_US**
#+ usr/lib/locale/
#/usr/lib/locale/*
#+ usr/share/locale/locale.alias
#+ usr/share/locale/
#/usr/share/locale/*
#+ usr/lib/gconv/gconv-modules.cache
#+ usr/lib/gconv/
#/usr/lib/gconv/*

+ usr/share/hwdata/pcitable
+ usr/share/hwdata/
+ usr/share/
/usr/share**

# Include some commonly used libs 
+ usr/lib/libwrap.so*
+ usr/lib/*lam*
+ usr/lib/*mpich*
+ usr/lib/libpopt.so*
+ usr/lib/
/usr/lib/*
# To include anything from /usr/lib, it MUST appear above the previous line!

# And now the same thing for a 64 bit system:
+ usr/lib64/libwrap.so*
+ usr/lib64/*lam*
+ usr/lib64/*mpich*
+ usr/lib64/libpopt.so*
+ usr/lib64/
/usr/lib64/*
# To include anything from /usr/lib64, it MUST appear above the previous line!

# Include some /var sub-subdirectories, exclude the rest and their files
+ var/empty/sshd
+ var/empty/
+ var/lock/subsys
+ var/lock/
+ var/lib/dhcp
+ var/lib/nfs**
+ var/lib/
/var/*/**

############################################################################
# The rest of this file causes default things to be excluded from the ramdisk
# as would be appropriate for a diskless & headless compute cluster node.
############################################################################

# The live ramdisk doesn't need these, but are useful for the VNFS
/bin/dd
/bin/df
/bin/more
/bin/netstat
/bin/pgawk
/bin/rpm
/bin/stty
/bin/su
/bin/vi

# Read you documentation elsewhere, not on the live ramdisk...
/usr/share/doc/
/usr/share/man/
/usr/bin/man/
/usr/share/info/
/usr/bin/info/

#exclude most of the directories in /usr
# Note: some /usr/* dirs should be listed in symlinks-nfs
/usr/*

# Exclude other directories, these should also be in symlinks-nfs
/lib/security/
/lib64/security/
/etc/security/
/etc/pam.d/
/etc/makedev.d/
/etc/locale/
/etc/openldap/
/etc/ppp/
/etc/pcmcia/
/etc/X11/

# The ramdisk doesn't need most (if any) /boot stuff...
/boot/vmlinu*
/boot/initrd*
/boot/grub**

# The kernel modules are obtained from the master, not the VNFS
/lib/modules/

# Exclude a bunch of individual files...
/lib/libdb-*
/lib/libcrypto.so.*
/lib/libssl.so.*
/lib/libpwdb.*
#/lib/libnss_nis*
/lib64/libdb-*
/lib64/libcrypto.so.*
/lib64/libssl.so.*
/lib64/libpwdb.*
#/lib64/libnss_nis*
/etc/termcap

/sbin/genksyms
/sbin/tune2fs
/sbin/fsck
/sbin/partx
/sbin/e2label
/sbin/e2image
/sbin/dumpe2fs
/sbin/badblocks
/sbin/addpart
/sbin/delpart
/sbin/resize2fs

/sbin/rpcdebug
/sbin/plipconfig
/sbin/mkswap
/sbin/insmod.static
/sbin/modinfo
/sbin/install-info

/sbin/e2fsck
/sbin/fsck.ext2
/sbin/fsck.ext3
/sbin/parted
/sbin/ppp-watch
/sbin/fdisk
/sbin/debugfs
/sbin/hdparm
/sbin/ldconfig
/sbin/sln
/sbin/mkraid
/sbin/arytst
/sbin/raidreconf
/sbin/lsraid
/sbin/raidstart
/sbin/mke2fs
/sbin/mkfs.*
/sbin/pwdb_chkpwd
/sbin/pam_console_apply
/sbin/chkconfig

/sbin/generate-modprobe.conf
/sbin/sulogin
/sbin/redhat-support-check
/usr/bin/clear
/usr/bin/tzselect
/usr/bin/captoinfo
/usr/bin/info
/usr/bin/glibcbug
/usr/bin/gpasswd
/usr/bin/su
/usr/sbin/adduser
/usr/sbin/glibc_post_upgrade
/usr/sbin/useradd
/usr/sbin/userdel
/usr/sbin/usermod

