From: Victor Lowther Date: Mon, 25 May 2009 21:35:57 +0000 (-0500) Subject: Add check files for network and nfsroot X-Git-Tag: 0.1~173 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e19548857044c6507ab717f6f2c2e7ebd873238;p=thirdparty%2Fdracut.git Add check files for network and nfsroot This way dracut will not try to install them if the system does not have the needed prerequisites. --- diff --git a/modules.d/40network/check b/modules.d/40network/check new file mode 100755 index 000000000..77d876b5d --- /dev/null +++ b/modules.d/40network/check @@ -0,0 +1,3 @@ +#!/bin/sh +which ip dhclient hostname >/dev/null 2>&1 || exit 1 +exit 0 \ No newline at end of file diff --git a/modules.d/40nfsroot/check b/modules.d/40nfsroot/check new file mode 100755 index 000000000..e0cecb8e1 --- /dev/null +++ b/modules.d/40nfsroot/check @@ -0,0 +1,3 @@ +#!/bin/sh +which rpcbind rpc.statd mount.nfs mount.nfs4 >/dev/null 2>&1 || exit 1 +exit 0 \ No newline at end of file