# Check script to validate if an osr cluster initrd can be build or not
# Right now this can only work with NFS as root filesystem

# we require nfs
# What if we either require nfs|ocfs2|gfs|glusterfs|ext3 ???
#[ "$1" = "-d" ] && echo nfs

# If hostonly was requested, fail the check if we are not actually
# booting from root.
[ "$1" = "-h" ] && ! egrep -q '/ nfs[34 ]' /proc/mounts && exit 1

exit 1

# Right now we only support bootparams therefore we don't need clustertools yet!
#RPMS="comoonics-cdsl-py comoonics-cluster-py"
#
#missingrpms=""
#for rpm in "$RPMS"; do
#   rpm -q $rpm
#   if [ $? -ne 0 ]; then
#      missing="$missing $rpm"
#   fi
#done
