$OpenBSD: patch-salt_modules_disk_py,v 1.4 2015/02/13 07:03:44 ajacoutot Exp $

https://github.com/saltstack/salt/commit/015fc5121466dd8dad3f6116bd3d1bf373761ac6

--- salt/modules/disk.py.orig	Thu Feb 12 18:55:39 2015
+++ salt/modules/disk.py	Fri Feb 13 07:49:14 2015
@@ -55,7 +55,7 @@ def usage(args=None):
         salt '*' disk.usage
     '''
     flags = _clean_flags(args, 'disk.usage')
-    if not os.path.isfile('/etc/mtab'):
+    if not os.path.isfile('/etc/mtab') and __grains__['kernel'] == 'Linux':
         log.warn('df cannot run without /etc/mtab')
         if __grains__.get('virtual_subtype') == 'LXC':
             log.warn('df command failed and LXC detected. If you are running '
