*** /diskless/CentOS6/i386/root/etc/rc.d/rc.sysinit	2012-06-22 15:51:40.000000000 -0400
--- modded/rc.sysinit_modded	2012-07-16 11:01:41.000000000 -0400
***************
*** 33,39 ****
  
  # Check SELinux status
  SELINUX_STATE=
! if [ -e "/selinux/enforce" ] && [ "$(cat /proc/self/attr/current)" != "kernel" ]; then
  	if [ -r "/selinux/enforce" ] ; then
  		SELINUX_STATE=$(cat "/selinux/enforce")
  	else
--- 33,41 ----
  
  # Check SELinux status
  SELINUX_STATE=
! # BM - Patch to remove harmless "cat: /proc/self/attr/current: Invalid argument"
! #if [ -e "/selinux/enforce" ] && [ "$(cat /proc/self/attr/current)" != "kernel" ]; then
! if [ -e "/selinux/enforce" ] && [ "$(cat /proc/self/attr/current 2> /dev/null)" != "kernel" ]; then
  	if [ -r "/selinux/enforce" ] ; then
  		SELINUX_STATE=$(cat "/selinux/enforce")
  	else
***************
*** 358,372 ****
  		# No local storage was found.  Make a final attempt to find
  		# state on an NFS server.
  
! 		mount -t nfs $CLIENTSTATE/$HOSTNAME $STATE_MOUNT -o rw,nolock
  	fi
  
  	if [ -w "$STATE_MOUNT" ]; then
  
  		mount_state() {
  			if [ -e "$1" ]; then
! 				[ ! -e "$STATE_MOUNT$1" ] && cp -a --parents "$1" "$STATE_MOUNT"
! 				mount -n --bind "$STATE_MOUNT$1" "$1"
  			fi
  		}
  
--- 360,379 ----
  		# No local storage was found.  Make a final attempt to find
  		# state on an NFS server.
  
! # BM - Patch to allow for mount binding of individual files
! #		mount -t nfs $CLIENTSTATE/$HOSTNAME $STATE_MOUNT -o rw,nolock
! 		mount -t nfs $CLIENTSTATE/$HOSTNAME $STATE_MOUNT -o nfsvers=3,rw,nolock
  	fi
  
  	if [ -w "$STATE_MOUNT" ]; then
  
  		mount_state() {
  			if [ -e "$1" ]; then
!                             # BM - if the file is writable, it was mount bind previously.  
! 			    # Copy its contents to state file, then mount
!                             [ -w "$1" ] && cp -a --parents "$1" "$STATE_MOUNT"
! 			    [ ! -e "$STATE_MOUNT$1" ] && cp -a --parents "$1" "$STATE_MOUNT"
! 			    mount -n --bind "$STATE_MOUNT$1" "$1"
  			fi
  		}
  
