[Buildroot] [git commit] nfs-utils: create /var/lock/subsys

Peter Korsgaard peter at korsgaard.com
Sat Sep 6 20:11:51 UTC 2014

commit: http://git.buildroot.net/buildroot/commit/?id=3a61bacdcb4ea99c4b09e83de882747ad210041a
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

The NFS server needs to create files in /var/lock/subsys/, but this
directory doesn't exist in our skeleton. This commit makes sure it
gets created by the S60nfs startup script, which fixes the operation
of the NFS server (tested with rpcbind).

Reported-by: Ofer Heifetz <oferh at marvell.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 package/nfs-utils/S60nfs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/package/nfs-utils/S60nfs b/package/nfs-utils/S60nfs
index 49dab70..4afee55 100755
--- a/package/nfs-utils/S60nfs
+++ b/package/nfs-utils/S60nfs
@@ -16,6 +16,7 @@
 # The /var/lib/nfs directory is actually on a tmpfs filesystem.
 mkdir -p /var/lib/nfs/sm
 mkdir -p /var/lib/nfs/sm.bak
+mkdir -p /var/lock/subsys
 touch /var/lib/nfs/etab
 touch /var/lib/nfs/rmtab
 touch /var/lib/nfs/state

More information about the buildroot mailing list