]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Add check files for network and nfsroot
authorVictor Lowther <victor.lowther@gmail.com>
Mon, 25 May 2009 21:35:57 +0000 (16:35 -0500)
committerVictor Lowther <victor.lowther@gmail.com>
Mon, 25 May 2009 21:35:57 +0000 (16:35 -0500)
This way dracut will not try to install them if the system does not have
the needed prerequisites.

modules.d/40network/check [new file with mode: 0755]
modules.d/40nfsroot/check [new file with mode: 0755]

diff --git a/modules.d/40network/check b/modules.d/40network/check
new file mode 100755 (executable)
index 0000000..77d876b
--- /dev/null
@@ -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 (executable)
index 0000000..e0cecb8
--- /dev/null
@@ -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