]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
source dracut-lib.sh in nfs cleanup script
authorDave Young <dyoung@redhat.com>
Thu, 2 Feb 2012 08:00:04 +0000 (16:00 +0800)
committerHarald Hoyer <harald@redhat.com>
Tue, 7 Feb 2012 11:14:21 +0000 (12:14 +0100)
nfsroot-cleanup.sh need source dracut-lib.sh for function incol2

Signed-off-by: Dave Young <dyoung@redhat.com>
modules.d/95nfs/nfsroot-cleanup.sh

index 05229023c2970beaae94e7ef1b9aaa7b858cd9c5..56100166caa048a796576d67cc33ca142924fe4d 100755 (executable)
@@ -2,6 +2,8 @@
 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
+type incol2 >/dev/null 2>&1 || . /lib/dracut-lib.sh
+
 [ -f /tmp/nfs.rpc_pipefs_path ] && rpcpipefspath=`cat /tmp/nfs.rpc_pipefs_path`
 [ -z "$rpcpipefspath" ] && rpcpipefspath=var/lib/nfs/rpc_pipefs